summaryrefslogtreecommitdiff
path: root/lib/Target/SystemZ/SystemZInstrInfo.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-07-02 21:17:31 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-07-02 21:17:31 +0000
commit24dd7dbe7f2a3338a20314b3863f6b738cc1c298 (patch)
tree2339e8ee9066684b5c7d7553dad753cf501f745d /lib/Target/SystemZ/SystemZInstrInfo.cpp
parent540579eb264500fc81572c55c76b482ce16d1ced (diff)
downloadllvm-24dd7dbe7f2a3338a20314b3863f6b738cc1c298.tar.gz
llvm-24dd7dbe7f2a3338a20314b3863f6b738cc1c298.tar.bz2
llvm-24dd7dbe7f2a3338a20314b3863f6b738cc1c298.tar.xz
SystemZ: Fold variable into assertion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185475 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZInstrInfo.cpp')
-rw-r--r--lib/Target/SystemZ/SystemZInstrInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/SystemZ/SystemZInstrInfo.cpp b/lib/Target/SystemZ/SystemZInstrInfo.cpp
index af3b7110db..4f919e9bcb 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.