Skip to content

Commit 82b1f4d

Browse files
committed
fixup! Implement a Function Call Graph
1 parent 769ca14 commit 82b1f4d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libsolidity/analysis/FunctionCallGraph.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ FunctionCallGraphBuilder::ContractCallGraph FunctionCallGraphBuilder::buildDeplo
122122
// All functions present in internal dispatch at creation time could potentially be pointers
123123
// assigned to state variables and as such may be reachable after deployment as well.
124124
builder.m_currentNode = SpecialNode::InternalDispatch;
125-
set<Node, CompareByID> emptySet;
126-
for (Node const& dispatchTarget: valueOrDefault(_creationGraph.edges, SpecialNode::InternalDispatch, emptySet))
125+
for (Node const& dispatchTarget: valueOrDefault(_creationGraph.edges, SpecialNode::InternalDispatch, {}))
127126
{
128127
solAssert(!holds_alternative<SpecialNode>(dispatchTarget), "");
129128
solAssert(get<CallableDeclaration const*>(dispatchTarget) != nullptr, "");

0 commit comments

Comments
 (0)