[llvm-commits] [llvm] r150627 - /llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
Lang Hames
lhames at gmail.com
Wed Feb 15 14:45:51 PST 2012
Author: lhames
Date: Wed Feb 15 16:45:51 2012
New Revision: 150627
URL: http://llvm.org/viewvc/llvm-project?rev=150627&view=rev
Log:
Fix assertion condition.
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=150627&r1=150626&r2=150627&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp Wed Feb 15 16:45:51 2012
@@ -970,7 +970,7 @@
MachineBasicBlock* mbb = mi->getParent();
- assert(getMBBFromIndex(origIdx) == mbb &&
+ assert(getMBBStartIdx(mbb) <= origIdx && origIdx < getMBBEndIdx(mbb) &&
"Cannot handle moves across basic block boundaries.");
assert(!mi->isBundled() && "Can't handle bundled instructions yet.");
More information about the llvm-commits
mailing list