summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2012-02-15 22:45:51 +0000
committerLang Hames <lhames@gmail.com>2012-02-15 22:45:51 +0000
commitf15502f2e5e1961ee9ee50745077b204fd7cace2 (patch)
treecd0c07537dcde0aa0c37bcf98731be511054a280 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
parent0b73456cc58c2ba34612ee9e1a7ba24242477b8b (diff)
downloadbcm5719-llvm-f15502f2e5e1961ee9ee50745077b204fd7cace2.tar.gz
bcm5719-llvm-f15502f2e5e1961ee9ee50745077b204fd7cace2.zip
Fix assertion condition.
llvm-svn: 150627
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp2
1 files changed, 1 insertions, 1 deletions
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.");
OpenPOWER on IntegriCloud