Skip to content

Commit

Permalink
When splitting a block using CFGModifier::split, we need to record the
Browse files Browse the repository at this point in the history
new block in parse_data
  • Loading branch information
mxz297 committed Mar 5, 2019
1 parent c371022 commit a949870
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions parseAPI/src/CFGModifier.C
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ Block *CFGModifier::split(Block *b, Address a, bool trust, Address newlast) {
ret->updateEnd(b->_end);
ret->_lastInsn = b->_lastInsn;
ret->_parsed = true;
b->obj()->parser->_parse_data->record_block(ret->region(), ret);

b->updateEnd(a);
b->_lastInsn = newlast;
Expand Down

0 comments on commit a949870

Please sign in to comment.