SystemZInstrInfo.cpp: Tweak an assertion. [-Wunused-variable]
authorNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 3 Jul 2013 02:20:49 +0000 (02:20 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 3 Jul 2013 02:20:49 +0000 (02:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185499 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SystemZ/SystemZInstrInfo.cpp

index 4f919e9bcbe8ec5aac46eb47c99764db60312970..e9829d59a68dfb36d356e28f50d86950aa778841 100644 (file)
@@ -350,8 +350,8 @@ SystemZInstrInfo::foldMemoryOperandImpl(MachineFunction &MF,
     return 0;
 
   unsigned OpNum = Ops[0];
     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
          "Invalid size combination");
 
   // Look for cases where the source of a simple store or the destination