summaryrefslogtreecommitdiff
path: root/lib
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
commit656b3d22f70c2d1c8a5286f7270cb380df862565 (patch)
tree909d683bc4c45125ad88ed92d0774f63c8cc13f8 /lib
parentcb9e08f328892eaf46825d7426216995ca673a67 (diff)
downloadllvm-656b3d22f70c2d1c8a5286f7270cb380df862565.tar.gz
llvm-656b3d22f70c2d1c8a5286f7270cb380df862565.tar.bz2
llvm-656b3d22f70c2d1c8a5286f7270cb380df862565.tar.xz
Delete an extra "Imm5 = ", caught by GCC's -Wsequence-point but not by Clang
(see PR4579). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121939 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/ARM/ARMMCCodeEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMMCCodeEmitter.cpp b/lib/Target/ARM/ARMMCCodeEmitter.cpp
index 2f210c3ad2..ed7c59bbca 100644
--- a/lib/Target/ARM/ARMMCCodeEmitter.cpp
+++ b/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;
}