aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--lib/CodeGen/LiveIntervalAnalysis.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp
index 7569875ad0..4fc08ec6b9 100644
--- a/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -368,8 +368,11 @@ void LiveIntervals::handlePhysicalRegisterDef(MachineBasicBlock* mbb,
}
}
+ // LiveVariables does not compute information for dead basic blocks.
+ DEBUG(std::cerr << "Didn't find the end of the interval. Must be in a "
+ "dead block.");
+ end = getDefIndex(start)+1;
exit:
- assert(start < end && "did not find end of interval?");
interval.addRange(start, end);
DEBUG(std::cerr << '\n');
}