mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-20 11:46:44 +00:00
Fix for finding jumpTableBlock
This commit is contained in:
parent
d6915b4d0b
commit
7a7d4e33e0
1 changed files with 4 additions and 0 deletions
|
|
@ -879,6 +879,10 @@ void Compiler::linkBasicBlocks()
|
|||
/// Helper function that finds basic block given LLVM basic block pointer
|
||||
auto findBasicBlock = [this](llvm::BasicBlock* _llbb) -> BasicBlock&
|
||||
{
|
||||
// TODO: Fix for finding jumpTableBlock
|
||||
if (_llbb == this->m_jumpTableBlock->llvm())
|
||||
return *this->m_jumpTableBlock;
|
||||
|
||||
// Name is used to get basic block index (index of first instruction)
|
||||
// TODO: If basicBlocs are still a map - multikey map can be used
|
||||
auto&& idxStr = _llbb->getName().substr(sizeof(BasicBlock::NamePrefix) - 2);
|
||||
|
|
|
|||
Loading…
Reference in a new issue