summaryrefslogtreecommitdiff
path: root/src/passes/Directize.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/Directize.cpp')
-rw-r--r--src/passes/Directize.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/passes/Directize.cpp b/src/passes/Directize.cpp
index 54315dc77..f6969cce5 100644
--- a/src/passes/Directize.cpp
+++ b/src/passes/Directize.cpp
@@ -109,12 +109,7 @@ struct Directize : public Pass {
return;
}
// The table exists and is constant, so this is possible.
- {
- PassRunner runner(module);
- runner.setIsNested(true);
- runner.add<FunctionDirectizer>(&flatTable);
- runner.run();
- }
+ FunctionDirectizer(&flatTable).run(runner, module);
}
};