forked from swiftlang/swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update edge removal API in call graph.
Add a parameter for a function the call site is in, rather than using the call site to determine the function. This is necessary for enabling invalidation of call graph information for individual functions. If we're not maintaining the call graph during a pass, we may delete an instruction and be left with a dangling pointer in the call graph edge. This allows us to still remove the edge properly without trying to look at the instruction it represents.
- Loading branch information
Showing
2 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters