Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add all pnames to CallGraph in AnalysisDependencyGraph
This ensures that function never called are still invalidated.
- Loading branch information
d903f0c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! The conditional can be avoided if the
create
call is moved up to L47.d903f0c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I put the statement here to avoid any confusion about proc_name and callee. The iterations above are adding edges from callees to proc_name, and not the other way around. I though it would be confusing to put the create_node above as one would think that it needs to be called before adding edges.
Secondly looking at the code for CallGrah it seems to me that 'create_node' would remove existing successors added in previous iterations of iter_specs