mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 06:29:05 +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:
@@ -3130,6 +3130,9 @@ ARMTargetLowering::EmitAtomicCmpSwap(MachineInstr *MI,
|
|||||||
// exitMBB:
|
// exitMBB:
|
||||||
// ...
|
// ...
|
||||||
BB = exitMBB;
|
BB = exitMBB;
|
||||||
|
|
||||||
|
MF->DeleteMachineInstr(MI); // The instruction is gone now.
|
||||||
|
|
||||||
return BB;
|
return BB;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user