diff options
author | Chris Lattner <sabre@nondot.org> | 2004-06-29 07:16:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-06-29 07:16:23 +0000 |
commit | 91a350ddd13de9c972c583b4a1ad3ac114c117e7 (patch) | |
tree | 4c2178a8d3c7e56285b43b95f69f6e74ddac187e /lib/CodeGen/LiveIntervalAnalysis.cpp | |
parent | 59850a8f8f94c59e8894edcbf8629a5d88624dc6 (diff) |
In line with the previous patch, do not assert out if analyzing a dead basic block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14475 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 5 |
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'); } |