[llvm] r185475 - SystemZ: Fold variable into assertion.

Benjamin Kramer benny.kra at googlemail.com
Tue Jul 2 14:17:31 PDT 2013


Author: d0k
Date: Tue Jul  2 16:17:31 2013
New Revision: 185475

URL: http://llvm.org/viewvc/llvm-project?rev=185475&view=rev
Log:
SystemZ: Fold variable into assertion.

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=185475&r1=185474&r2=185475&view=diff
==============================================================================
--- llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.cpp Tue Jul  2 16:17:31 2013
@@ -351,8 +351,8 @@ SystemZInstrInfo::foldMemoryOperandImpl(
 
   unsigned OpNum = Ops[0];
   unsigned Reg = MI->getOperand(OpNum).getReg();
-  unsigned RegSize = MF.getRegInfo().getRegClass(Reg)->getSize();
-  assert(Size == RegSize && "Invalid size combination");
+  assert(Size == MF.getRegInfo().getRegClass(Reg)->getSize() &&
+         "Invalid size combination");
 
   // Look for cases where the source of a simple store or the destination
   // of a simple load is being spilled.  Try to use MVC instead.





More information about the llvm-commits mailing list