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 3aa70b2c4f
commit d0860d6e02
1 changed files with 3 additions and 0 deletions

View File

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