forked from OSchip/llvm-project
EmitAtomicCmpSwap() custome inserter needs to delete the MI passed in. EmitAtomicBinary() already does this.
llvm-svn: 93479
This commit is contained in:
parent
3aa70b2c4f
commit
d0860d6e02
|
@ -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