aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2012-02-17 21:40:48 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2012-02-17 21:40:48 +0000
commit0310038d5a4fe71c62f78470907c61188c613fa3 (patch)
treefdc8290b2149753a2c9ac3f0153b0c73b042d227 /lib/CodeGen
parentfbc8dd306aa7699a866db278db08d842762b2dc2 (diff)
Sink variable into assert
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150841 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/LiveIntervalAnalysis.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp
index 4e66bf6138..e84e8009ad 100644
--- a/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -1271,8 +1271,8 @@ void LiveIntervals::handleMove(MachineInstr* mi) {
SlotIndex newIndex = mi->isInsideBundle() ?
indexes_->getInstructionIndex(mi->getBundleStart()) :
indexes_->insertMachineInstrInMaps(mi);
- MachineBasicBlock* mbb = mi->getParent();
- assert(getMBBStartIdx(mbb) <= oldIndex && oldIndex < getMBBEndIdx(mbb) &&
+ assert(getMBBStartIdx(mi->getParent()) <= oldIndex &&
+ oldIndex < getMBBEndIdx(mi->getParent()) &&
"Cannot handle moves across basic block boundaries.");
assert(!mi->isBundled() && "Can't handle bundled instructions yet.");