commit | 3cb6277d7f2dd5b0d47a327b4c5d1fa8188e28ae | [log] [tgz] |
---|---|---|
author | Jim Grosbach <grosbach@apple.com> | Fri Jan 15 00:18:34 2010 +0000 |
committer | Jim Grosbach <grosbach@apple.com> | Fri Jan 15 00:18:34 2010 +0000 |
tree | 2071d9dd2e385d797cd332487586b85b56f83652 | |
parent | b1b423bb771a9d55db136bf55d851d50cba3b93f [diff] [blame] |
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
diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp index 275b30c..7c87448 100644 --- a/lib/Target/ARM/ARMISelLowering.cpp +++ b/lib/Target/ARM/ARMISelLowering.cpp
@@ -3130,6 +3130,9 @@ // exitMBB: // ... BB = exitMBB; + + MF->DeleteMachineInstr(MI); // The instruction is gone now. + return BB; }