We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69dbf46 commit 78768c5Copy full SHA for 78768c5
clang-tools-extra/clang-move/HelperDeclRefGraph.cpp
@@ -76,9 +76,8 @@ HelperDeclRefGraph::getReachableNodes(const Decl *Root) const {
76
llvm::DenseSet<const CallGraphNode *> ConnectedNodes;
77
std::function<void(const CallGraphNode *)> VisitNode =
78
[&](const CallGraphNode *Node) {
79
- if (ConnectedNodes.count(Node))
+ if (!ConnectedNodes.insert(Node).second)
80
return;
81
- ConnectedNodes.insert(Node);
82
for (auto It = Node->begin(), End = Node->end(); It != End; ++It)
83
VisitNode(*It);
84
};
0 commit comments