From: Benjamin Kramer Date: Tue, 2 Jul 2013 21:17:31 +0000 (+0000) Subject: SystemZ: Fold variable into assertion. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=24dd7dbe7f2a3338a20314b3863f6b738cc1c298;p=oota-llvm.git SystemZ: Fold variable into assertion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185475 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/SystemZ/SystemZInstrInfo.cpp b/lib/Target/SystemZ/SystemZInstrInfo.cpp index af3b7110dbe..4f919e9bcbe 100644 --- a/lib/Target/SystemZ/SystemZInstrInfo.cpp +++ b/lib/Target/SystemZ/SystemZInstrInfo.cpp @@ -351,8 +351,8 @@ SystemZInstrInfo::foldMemoryOperandImpl(MachineFunction &MF, 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.