summaryrefslogtreecommitdiff
path: root/src/passes/PrintCallGraph.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/PrintCallGraph.cpp')
-rw-r--r--src/passes/PrintCallGraph.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/passes/PrintCallGraph.cpp b/src/passes/PrintCallGraph.cpp
index 7df5a8875..6d9224a21 100644
--- a/src/passes/PrintCallGraph.cpp
+++ b/src/passes/PrintCallGraph.cpp
@@ -85,8 +85,9 @@ struct PrintCallGraph : public Pass {
}
void visitCall(Call* curr) {
auto* target = module->getFunction(curr->target);
- if (visitedTargets.count(target->name) > 0)
+ if (visitedTargets.count(target->name) > 0) {
return;
+ }
visitedTargets.insert(target->name);
std::cout << " \"" << currFunction->name << "\" -> \"" << target->name
<< "\"; // call\n";