From: Lang Hames Date: Wed, 15 Feb 2012 22:45:51 +0000 (+0000) Subject: Fix assertion condition. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cc72913268ccf5e0fb2785496a1dee764ecce5ff;p=oota-llvm.git Fix assertion condition. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150627 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 5e721bc4fc0..a8aa21a96ae 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -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.");