diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-04-18 13:44:51 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-04-18 13:44:51 -0700 |
commit | b2fbce4f40c4b8adfdb7cd291d510de9e7219fc6 (patch) | |
tree | dae16c11fd37e0bee1a143302c116fe0af04af20 /src/passes/MergeBlocks.cpp | |
parent | 0438aa2383724cf0b29554ecb396c9ef26dab92d (diff) | |
download | binaryen-b2fbce4f40c4b8adfdb7cd291d510de9e7219fc6.tar.gz binaryen-b2fbce4f40c4b8adfdb7cd291d510de9e7219fc6.tar.bz2 binaryen-b2fbce4f40c4b8adfdb7cd291d510de9e7219fc6.zip |
create a UnifiedExpressionVisitor for passes that want a single visitor function, to avoid confusion with having both visit* and visitExpression in a single pass (#357)
Diffstat (limited to 'src/passes/MergeBlocks.cpp')
-rw-r--r-- | src/passes/MergeBlocks.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/MergeBlocks.cpp b/src/passes/MergeBlocks.cpp index 5033d4016..f3b85ab3d 100644 --- a/src/passes/MergeBlocks.cpp +++ b/src/passes/MergeBlocks.cpp @@ -23,7 +23,7 @@ namespace wasm { -struct MergeBlocks : public WalkerPass<PostWalker<MergeBlocks>> { +struct MergeBlocks : public WalkerPass<PostWalker<MergeBlocks, Visitor<MergeBlocks>>> { bool isFunctionParallel() { return true; } void visitBlock(Block *curr) { |