Browse Source

Fix for finding jumpTableBlock

cl-refactor
Paweł Bylica 10 years ago
parent
commit
7a7d4e33e0
  1. 4
      evmcc/Compiler.cpp

4
evmcc/Compiler.cpp

@ -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…
Cancel
Save