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 | 4cda555346079c39860781628b57f10a56ecabe5 (patch) | |
tree | 21ec2e9f392558078c274e90f23ef5fc50eac0ee /llvm/lib/CodeGen/LiveIntervals.cpp | |
parent | 49b34f3f51224a39037d80b3e3efc847064ba1a0 (diff) | |
download | bcm5719-llvm-4cda555346079c39860781628b57f10a56ecabe5.tar.gz bcm5719-llvm-4cda555346079c39860781628b57f10a56ecabe5.zip |
In line with the previous patch, do not assert out if analyzing a dead basic block.
llvm-svn: 14475
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervals.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveIntervals.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervals.cpp b/llvm/lib/CodeGen/LiveIntervals.cpp index 7569875ad08..4fc08ec6b9c 100644 --- a/llvm/lib/CodeGen/LiveIntervals.cpp +++ b/llvm/lib/CodeGen/LiveIntervals.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'); } |