[llvm-commits] Fwd: [LLVMdev] [PATCH] Remove instruction within a bundle

Ivan Llopard ivanllopard at gmail.com
Tue Jun 5 00:43:55 PDT 2012


Hi again!

I don't know if I should send patches for review to llvmdev or 
llvmcommits so I forward my original message sent to llvmdev.

Thanks,
Ivan


-------- Original Message --------
Subject: 	[LLVMdev] [PATCH] Remove instruction within a bundle
Date: 	Sun, 03 Jun 2012 17:17:47 +0200
From: 	Ivan Llopard <ivanllopard at gmail.com>
To: 	LLVM Developers Mailing List <llvmdev at cs.uiuc.edu>



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 --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120605/447f8d9a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MIeraseFromParent.patch
Type: text/x-patch
Size: 335 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120605/447f8d9a/attachment.bin>


More information about the llvm-commits mailing list