mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124907 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user