summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
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
commit421c8fb2ce5659d5dab9e7a24d856d5bfaa84301 (patch)
treeeb2b94ce13580ab78b2f9bbdc8e9ebfd776b2bc9 /llvm/lib/Target
parent363ddd7df2932e71755b53cbd6fe315256020e15 (diff)
downloadbcm5719-llvm-421c8fb2ce5659d5dab9e7a24d856d5bfaa84301.tar.gz
bcm5719-llvm-421c8fb2ce5659d5dab9e7a24d856d5bfaa84301.zip
SystemZ: Fold variable into assertion.
llvm-svn: 185475
Diffstat (limited to 'llvm/lib/Target')
-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