Skip to content
Snippets Groups Projects
Commit 5f65ccdb authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

was building a bad cfg for ThisIsNotAFunc

Former-commit-id: 77ebeb4997072778a68f295046c47f05c7e750d3
parent 0d6b6414
No related branches found
No related tags found
No related merge requests found
......@@ -149,7 +149,8 @@ void ControlFlowGraph_t::Build(Function_t* func)
alloc_blocks(starts, insn2block_map);
build_blocks(insn2block_map);
/* record the entry block */
entry=insn2block_map[func->GetEntryPoint()];
if(func->GetEntryPoint())
entry=insn2block_map[func->GetEntryPoint()];
/* most functions are done now. */
/* however, if a function has a (direct) side entrance,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment