mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 12:16:44 +00:00
Fix for invalid jump table basic block
This commit is contained in:
parent
0febd6ae1a
commit
de8deab6ff
1 changed files with 7 additions and 0 deletions
|
|
@ -927,6 +927,13 @@ void Compiler::linkBasicBlocks()
|
|||
completePhiNodes(*it);
|
||||
}
|
||||
}
|
||||
|
||||
// Remove jump table block if not predecessors
|
||||
if (llvm::pred_begin(m_jumpTableBlock->llvm()) == llvm::pred_end(m_jumpTableBlock->llvm()))
|
||||
{
|
||||
m_jumpTableBlock->llvm()->eraseFromParent();
|
||||
m_jumpTableBlock.reset();
|
||||
}
|
||||
}
|
||||
|
||||
void Compiler::dumpBasicBlockGraph(std::ostream& out)
|
||||
|
|
|
|||
Loading…
Reference in a new issue