summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMMCCodeEmitter.cpp
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2010-12-16 01:34:26 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2010-12-16 01:34:26 +0000
commite9afc740a8f6d747d899c3d2322db9828846aaeb (patch)
treeaf0696b707185d263967687af21d56a1a8f6552e /llvm/lib/Target/ARM/ARMMCCodeEmitter.cpp
parent71f39c96fb9ce245451831916247a0c91d067a78 (diff)
downloadbcm5719-llvm-e9afc740a8f6d747d899c3d2322db9828846aaeb.tar.gz
bcm5719-llvm-e9afc740a8f6d747d899c3d2322db9828846aaeb.zip
Delete an extra "Imm5 = ", caught by GCC's -Wsequence-point but not by Clang
(see PR4579). llvm-svn: 121939
Diffstat (limited to 'llvm/lib/Target/ARM/ARMMCCodeEmitter.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMMCCodeEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMMCCodeEmitter.cpp b/llvm/lib/Target/ARM/ARMMCCodeEmitter.cpp
index 2f210c3ad2d..ed7c59bbca5 100644
--- a/llvm/lib/Target/ARM/ARMMCCodeEmitter.cpp
+++ b/llvm/lib/Target/ARM/ARMMCCodeEmitter.cpp
@@ -823,7 +823,7 @@ getAddrModeISOpValue(const MCInst &MI, unsigned OpIdx,
const MCOperand &MO = MI.getOperand(OpIdx);
const MCOperand &MO1 = MI.getOperand(OpIdx + 1);
unsigned Rn = getARMRegisterNumbering(MO.getReg());
- unsigned Imm5 = Imm5 = MO1.getImm();
+ unsigned Imm5 = MO1.getImm();
return ((Imm5 & 0x1f) << 3) | Rn;
}
OpenPOWER on IntegriCloud