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
This commit is contained in:
Jakob Stoklund Olesen 2011-02-04 23:11:13 +00:00
parent ea745e86c8
commit e8ac8e93a1
1 changed files with 1 additions and 1 deletions

View File

@ -764,7 +764,7 @@ LiveIntervals::getLastSplitPoint(const LiveInterval &li,
if (I->getDesc().isCall()) if (I->getDesc().isCall())
return I; 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(); return mbb->getFirstTerminator();
} }