diff options
Diffstat (limited to 'src/passes/ReorderFunctions.cpp')
-rw-r--r-- | src/passes/ReorderFunctions.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/passes/ReorderFunctions.cpp b/src/passes/ReorderFunctions.cpp index 5cd70c20f..05df8cbe7 100644 --- a/src/passes/ReorderFunctions.cpp +++ b/src/passes/ReorderFunctions.cpp @@ -62,12 +62,7 @@ struct ReorderFunctions : public Pass { counts[func->name]; } // find counts on function calls - { - PassRunner runner(module); - runner.setIsNested(true); - runner.add<CallCountScanner>(&counts); - runner.run(); - } + CallCountScanner(&counts).run(runner, module); // find counts on global usages if (module->start.is()) { counts[module->start]++; |