LLVM IR Erase Instructions

What data structures should be changed when removing a command from LLVM IR. Currently, I only use I-> eraseFromParent () for this. This gives me a StackDump error at the end.

+4
source share
1 answer

Calling eraseFromParent is the right way to do this in accordance with the LLVM Programmer Manual . Did you replace using the instruction with something else before erasing it?

+4
source

Source: https://habr.com/ru/post/1393944/


All Articles