MachineInstr::eraseFromParent fix for removing bundled instrs.

Patch by Ivan Llopard.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158025 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andrew Trick 2012-06-05 21:44:23 +00:00
parent b7e0289fb3
commit d88d27868b

View File

@ -872,7 +872,8 @@ void MachineInstr::eraseFromParent() {
MBB->erase(MI); MBB->erase(MI);
} }
} }
getParent()->erase(this); // Erase the individual instruction, which may itself be inside a bundle.
getParent()->erase_instr(this);
} }