commit | 4b037005d26e4de08cbbb6a015c6531fe179da78 | [log] [tgz] |
---|---|---|
author | Andrew Trick <atrick@apple.com> | Tue Jun 05 21:44:23 2012 +0000 |
committer | Andrew Trick <atrick@apple.com> | Tue Jun 05 21:44:23 2012 +0000 |
tree | 16bff1e7c92b688d4e3212066c7b139d9cded202 | |
parent | 8ae50eb4a6c44f25e82571a5b7015d0ab1075393 [diff] [blame] |
MachineInstr::eraseFromParent fix for removing bundled instrs. Patch by Ivan Llopard. llvm-svn: 158025
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index 2dfb299..a35978b 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -872,7 +872,8 @@ MBB->erase(MI); } } - getParent()->erase(this); + // Erase the individual instruction, which may itself be inside a bundle. + getParent()->erase_instr(this); }