From 104eec2244c08db1309a0289fcf8580f7f7a19a4 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Sat, 10 Jan 2015 17:44:50 +0100 Subject: [PATCH] Also add blocks to function when splitting --- src/disassembler/llvm/LLVMDisassembler.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/disassembler/llvm/LLVMDisassembler.cxx b/src/disassembler/llvm/LLVMDisassembler.cxx index c73e703..c44c60c 100644 --- a/src/disassembler/llvm/LLVMDisassembler.cxx +++ b/src/disassembler/llvm/LLVMDisassembler.cxx @@ -333,6 +333,7 @@ void LLVMDisassembler::splitBlocks(LLVMFunction* function) { << current_block->getStartAddress() << " now ending at " << other->first); + function->addBasicBlock(other->second); current_block->setEndAddress(endaddress); current_block->setNextBlock(0, other->first); current_block->setNextBlock(1, 0); -- 2.39.5