Skip to content

Commit

Permalink
When reaching shared blocks that have been parsed, we still need to i…
Browse files Browse the repository at this point in the history
…nvalidate the cache of the current function as the function should include all the shared blocks
  • Loading branch information
mxz297 committed Jul 12, 2016
1 parent f2d290a commit f51f18a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions parseAPI/src/Parser.C
Original file line number Diff line number Diff line change
Expand Up @@ -1178,6 +1178,11 @@ Parser::parse_frame(ParseFrame & frame, bool recursive) {
func->set_retstatus(UNKNOWN);
}
}
// The edge to this shared block is changed from
// "going to sink" to going to this shared block.
// This changes the function boundary, so we need to
// invalidate the cache.
func->_cache_valid = false;
continue;
}

Expand Down

0 comments on commit f51f18a

Please sign in to comment.