mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-07 04:21:27 +00:00
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:
parent
b7e0289fb3
commit
d88d27868b
@ -872,7 +872,8 @@ void MachineInstr::eraseFromParent() {
|
||||
MBB->erase(MI);
|
||||
}
|
||||
}
|
||||
getParent()->erase(this);
|
||||
// Erase the individual instruction, which may itself be inside a bundle.
|
||||
getParent()->erase_instr(this);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user