What data structures should I modify while deleting an instruction from LLVM IR. Currently, I am using only I->eraseFromParent() method to do this. It gives me a StackDump error at the end.
Calling eraseFromParent
is the right way to do this according to the LLVM Programmer's Manual. Did you replace the uses of the instruction by something else before erasing it, though?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With