aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-02-04 23:11:13 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-02-04 23:11:13 +0000
commit45e53975f81164d6e5e6322e83dd19030b7d3c88 (patch)
tree906ad505d6350efb287a09ed73fad063fc995a3c /lib/CodeGen/LiveIntervalAnalysis.cpp
parent6c3ea9012e40a95d45592a15c63895d09ece5052 (diff)
Apparently, it is possible for a block with a landing pad successor to have no calls.
In that case we simply ignore the landing pad and split live ranges before the first terminator. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124907 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--lib/CodeGen/LiveIntervalAnalysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp
index 32c553ff12..e769df5b76 100644
--- a/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -764,7 +764,7 @@ LiveIntervals::getLastSplitPoint(const LiveInterval &li,
if (I->getDesc().isCall())
return I;
}
- assert(0 && "Block with landing pad successor contains no call instruction");
+ // The block contains no calls that can throw, so use the first terminator.
return mbb->getFirstTerminator();
}