[llvm-commits] [llvm] r150841 - /llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
Matt Beaumont-Gay
matthewbg at google.com
Fri Feb 17 13:40:49 PST 2012
Author: matthewbg
Date: Fri Feb 17 15:40:48 2012
New Revision: 150841
URL: http://llvm.org/viewvc/llvm-project?rev=150841&view=rev
Log:
Sink variable into assert
Modified:
llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
Modified: llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp?rev=150841&r1=150840&r2=150841&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp Fri Feb 17 15:40:48 2012
@@ -1271,8 +1271,8 @@
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.");
More information about the llvm-commits
mailing list