mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-22 15:39:28 +00:00
Relax this condition.
Some passes require breaking critical edges before they're called. Don't segfault because of that. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140196 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b7e807f9a9
commit
f0dc257a8f
@ -178,8 +178,7 @@ BasicBlock *llvm::SplitCriticalEdge(TerminatorInst *TI, unsigned SuccNum,
|
||||
|
||||
// Splitting the critical edge to a landing pad block is non-trivial. Don't do
|
||||
// it in this generic function.
|
||||
assert(!DestBB->isLandingPad() &&
|
||||
"Cannot split critical edge to a landing pad block!");
|
||||
if (DestBB->isLandingPad()) return 0;
|
||||
|
||||
// Create a new basic block, linking it into the CFG.
|
||||
BasicBlock *NewBB = BasicBlock::Create(TI->getContext(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user