mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-17 02:38:16 +00:00
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:
parent
930b4b16a1
commit
b416dbf12e
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user