[llvm-commits] [llvm] r121939 - /llvm/trunk/lib/Target/ARM/ARMMCCodeEmitter.cpp

Matt Beaumont-Gay matthewbg at google.com
Wed Dec 15 17:34:27 PST 2010


Author: matthewbg
Date: Wed Dec 15 19:34:26 2010
New Revision: 121939

URL: http://llvm.org/viewvc/llvm-project?rev=121939&view=rev
Log:
Delete an extra "Imm5 = ", caught by GCC's -Wsequence-point but not by Clang
(see PR4579).


Modified:
    llvm/trunk/lib/Target/ARM/ARMMCCodeEmitter.cpp

Modified: llvm/trunk/lib/Target/ARM/ARMMCCodeEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMMCCodeEmitter.cpp?rev=121939&r1=121938&r2=121939&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMMCCodeEmitter.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMMCCodeEmitter.cpp Wed Dec 15 19:34:26 2010
@@ -823,7 +823,7 @@
   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;
 }
 





More information about the llvm-commits mailing list