mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 22:04:55 +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);
|
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