From: NAKAMURA Takumi Date: Wed, 3 Jul 2013 02:20:49 +0000 (+0000) Subject: SystemZInstrInfo.cpp: Tweak an assertion. [-Wunused-variable] X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=985148ea873db018dbd2b53f066f5817a9b11aad;p=oota-llvm.git SystemZInstrInfo.cpp: Tweak an assertion. [-Wunused-variable] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185499 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/SystemZ/SystemZInstrInfo.cpp b/lib/Target/SystemZ/SystemZInstrInfo.cpp index 4f919e9bcbe..e9829d59a68 100644 --- a/lib/Target/SystemZ/SystemZInstrInfo.cpp +++ b/lib/Target/SystemZ/SystemZInstrInfo.cpp @@ -350,8 +350,8 @@ SystemZInstrInfo::foldMemoryOperandImpl(MachineFunction &MF, 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