From f15502f2e5e1961ee9ee50745077b204fd7cace2 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Wed, 15 Feb 2012 22:45:51 +0000 Subject: Fix assertion condition. llvm-svn: 150627 --- llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp') diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index 5e721bc4fc0..a8aa21a96ae 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/llvm/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."); -- cgit v1.2.3