summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp b/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
index af3b7110dbe..4f919e9bcbe 100644
--- a/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud