diff options
Diffstat (limited to 'src/ir/module-utils.h')
-rw-r--r-- | src/ir/module-utils.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ir/module-utils.h b/src/ir/module-utils.h index 88298fd43..16ecd54b0 100644 --- a/src/ir/module-utils.h +++ b/src/ir/module-utils.h @@ -319,7 +319,6 @@ template<typename T> struct ParallelFunctionMap { // Run on the implemented functions. struct Mapper : public WalkerPass<PostWalker<Mapper>> { - bool isFunctionParallel() override { return true; } Mapper(Info* info) : info(info) {} @@ -338,9 +337,7 @@ template<typename T> struct ParallelFunctionMap { Info info = {&map, work}; PassRunner runner(&wasm); - runner.setIsNested(true); - runner.add<Mapper>(&info); - runner.run(); + Mapper(&info).run(&runner, &wasm); } }; |