Browse Source

Fix for invalid jump table basic block

cl-refactor
Paweł Bylica 10 years ago
parent
commit
de8deab6ff
  1. 7
      libevmjit/Compiler.cpp

7
libevmjit/Compiler.cpp

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