From: Christoph Egger Date: Sat, 10 Jan 2015 16:44:50 +0000 (+0100) Subject: Also add blocks to function when splitting X-Git-Tag: v0.1~132 X-Git-Url: https://git.siccegge.de//index.cgi?a=commitdiff_plain;h=104eec2244c08db1309a0289fcf8580f7f7a19a4;p=frida%2Ffrida.git Also add blocks to function when splitting --- 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);