From 24dd7dbe7f2a3338a20314b3863f6b738cc1c298 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Tue, 2 Jul 2013 21:17:31 +0000 Subject: [PATCH] SystemZ: Fold variable into assertion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185475 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/SystemZ/SystemZInstrInfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. -- 2.34.1