From e8ac8e93a1472596706b965922852bb3f56eaccc Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Fri, 4 Feb 2011 23:11:13 +0000 Subject: 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. llvm-svn: 124907 --- llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp') diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index 32c553ff12d..e769df5b76d 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/llvm/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(); } -- cgit v1.2.3