[llvm] r185499 - SystemZInstrInfo.cpp: Tweak an assertion. [-Wunused-variable]

NAKAMURA Takumi geek4civic at gmail.com
Tue Jul 2 19:20:49 PDT 2013


Author: chapuni
Date: Tue Jul  2 21:20:49 2013
New Revision: 185499

URL: http://llvm.org/viewvc/llvm-project?rev=185499&view=rev
Log:
SystemZInstrInfo.cpp: Tweak an assertion. [-Wunused-variable]

Modified:
    llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.cpp

Modified: llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.cpp?rev=185499&r1=185498&r2=185499&view=diff
==============================================================================
--- llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.cpp Tue Jul  2 21:20:49 2013
@@ -350,8 +350,8 @@ SystemZInstrInfo::foldMemoryOperandImpl(
     return 0;
 
   unsigned OpNum = Ops[0];
-  unsigned Reg = MI->getOperand(OpNum).getReg();
-  assert(Size == MF.getRegInfo().getRegClass(Reg)->getSize() &&
+  assert(Size == MF.getRegInfo()
+         .getRegClass(MI->getOperand(OpNum).getReg())->getSize() &&
          "Invalid size combination");
 
   // Look for cases where the source of a simple store or the destination





More information about the llvm-commits mailing list