From 8fc404f2bbc567c10294011028a1c92acf5815e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Fri, 14 Aug 2015 12:12:31 +0200 Subject: [PATCH] Style changes. --- evmjit/libevmjit/Compiler.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/evmjit/libevmjit/Compiler.cpp b/evmjit/libevmjit/Compiler.cpp index e47300509..9bde352c3 100644 --- a/evmjit/libevmjit/Compiler.cpp +++ b/evmjit/libevmjit/Compiler.cpp @@ -105,14 +105,9 @@ void Compiler::resolveJumps() auto nextBlock = it->getNextNode() != m_mainFunc->end() ? it->getNextNode() : m_stopBB; auto term = it->getTerminator(); - if (!term) - { - // Block may have no terminator if the next instruction is a jump destination. + if (!term) // Block may have no terminator if the next instruction is a jump destination. llvm::IRBuilder<>{it}.CreateBr(nextBlock); - } else if (auto jump = llvm::dyn_cast(term)) - { - // Resolve jump if (jump->getSuccessor(0) == m_jumpTableBB) { auto destIdx = llvm::cast(jump->getMetadata(c_destIdxLabel)->getOperand(0))->getValue(); @@ -128,7 +123,6 @@ void Compiler::resolveJumps() if (jump->isConditional()) jump->setSuccessor(1, nextBlock); // Set next block for conditional jumps } - } } }