Может кто-нибудь подскажите, пожалуйста, как удалить инструкцию из ИК навсегда.Я получаю StackDump при попытке удалить инструкцию mul со следующим кодом:
Instruction *mul = BinaryOperator::CreateMul(op1,op1,"mul",tmp); //Creating new mul instruction
I2 = cast<Instruction>(i); //i is an Instruction iterator.
I2->replaceAllUsesWith(mul);
I2->eraseFromParent(); //Getting StackDump for this instruction