mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Update the generic specializer to maintain the call graph.
Swift SVN r27024
This commit is contained in:
@@ -156,6 +156,13 @@ bool CallGraph::tryGetCalleeSet(SILValue Callee,
|
||||
return false;
|
||||
|
||||
auto *CalleeNode = getCallGraphNode(CalleeFn);
|
||||
// FIXME: Consider whether we should create nodes for these
|
||||
// initially.
|
||||
if (!CalleeNode) {
|
||||
addCallGraphNode(CalleeFn);
|
||||
CalleeNode = getCallGraphNode(CalleeFn);
|
||||
}
|
||||
|
||||
assert(CalleeNode &&
|
||||
"Expected to have a call graph node for all functions!");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user