EmitAtomicCmpSwap() custome inserter needs to delete the MI passed in. EmitAtomicBinary() already does this.

llvm-svn: 93479
This commit is contained in:
Jim Grosbach 2010-01-15 00:18:34 +00:00
parent 7a710b57f5
commit ca3006c171

View File

@ -3130,6 +3130,9 @@ ARMTargetLowering::EmitAtomicCmpSwap(MachineInstr *MI,
// exitMBB:
// ...
BB = exitMBB;
MF->DeleteMachineInstr(MI); // The instruction is gone now.
return BB;
}