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
MIeraseFromParent.patch (347 Bytes)