[LLVMdev] [PATCH] Remove instruction within a bundle

Ivan Llopard ivanllopard at gmail.com
Sun Jun 3 08:17:47 PDT 2012


Hi,

I've raised an assertion when I tried to remove an instruction within a 
bundle by calling eraseFromParent(). It seems that in order to erase the 
MI, a bundle iterator is created but it's forbidden if the MI is not the 
bundle's header. The attached patch fix it.
As a test case, call eraseFromParent() on a machine instruction with its 
isInsideBundle flag activated.

Ivan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: MIeraseFromParent.patch
Type: text/x-patch
Size: 334 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120603/5fff692c/attachment.bin>


More information about the llvm-dev mailing list