summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
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
commit714b99dc848237efd6caf61ab9984feaa4ca0bf7 (patch)
tree14bc2a0afd5b3c179538529f54ba4721592ee72c /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
parenta9afc6ac4adc4786ebc7765d94b1053c540ed89e (diff)
downloadbcm5719-llvm-714b99dc848237efd6caf61ab9984feaa4ca0bf7.tar.gz
bcm5719-llvm-714b99dc848237efd6caf61ab9984feaa4ca0bf7.zip
Sink variable into assert
llvm-svn: 150841
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index 4e66bf61383..e84e8009ad4 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/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.");
OpenPOWER on IntegriCloud