projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
EmitAtomicCmpSwap() custome inserter needs to delete the MI passed in. EmitAtomicBina...
[oota-llvm.git]
/
lib
/
Target
/
ARM
/
ARMISelLowering.cpp
diff --git
a/lib/Target/ARM/ARMISelLowering.cpp
b/lib/Target/ARM/ARMISelLowering.cpp
index 275b30c9ae9e91677769eecbdebbe186806f1d8f..7c87448c4e868c9660bec10e868f56635bf27607 100644
(file)
--- a/
lib/Target/ARM/ARMISelLowering.cpp
+++ b/
lib/Target/ARM/ARMISelLowering.cpp
@@
-3130,6
+3130,9
@@
ARMTargetLowering::EmitAtomicCmpSwap(MachineInstr *MI,
// exitMBB:
// ...
BB = exitMBB;
+
+ MF->DeleteMachineInstr(MI); // The instruction is gone now.
+
return BB;
}