]> git.siccegge.de Git - frida/frida.git/commitdiff
Also add blocks to function when splitting
authorChristoph Egger <christoph@christoph-egger.org>
Sat, 10 Jan 2015 16:44:50 +0000 (17:44 +0100)
committerChristoph Egger <christoph@christoph-egger.org>
Sat, 10 Jan 2015 16:44:50 +0000 (17:44 +0100)
src/disassembler/llvm/LLVMDisassembler.cxx

index c73e703d29c33e4f803bdb6bd926aa4892741a3d..c44c60c83e779f5114556c8562f10f838877b634 100644 (file)
@@ -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);