mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 22:07:27 +00:00
EmitAtomicCmpSwap() custome inserter needs to delete the MI passed in. EmitAtomicBinary() already does this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93479 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
13c10c4e49
commit
5efaed3bf4
@ -3130,6 +3130,9 @@ ARMTargetLowering::EmitAtomicCmpSwap(MachineInstr *MI,
|
||||
// exitMBB:
|
||||
// ...
|
||||
BB = exitMBB;
|
||||
|
||||
MF->DeleteMachineInstr(MI); // The instruction is gone now.
|
||||
|
||||
return BB;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user