Fix assertion condition.
authorLang Hames <lhames@gmail.com>
Wed, 15 Feb 2012 22:45:51 +0000 (22:45 +0000)
committerLang Hames <lhames@gmail.com>
Wed, 15 Feb 2012 22:45:51 +0000 (22:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150627 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/LiveIntervalAnalysis.cpp

index 5e721bc4fc09badefeb42325f57b9f85f128a1e4..a8aa21a96aea6814a508e7c3b648d6f3d840f3c6 100644 (file)
@@ -970,7 +970,7 @@ void LiveIntervals::handleMove(MachineInstr *mi) {
 
   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.");