diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-01-19 15:26:48 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-01-19 15:26:48 -0800 |
commit | 22ed7f49494e6ecf6c431b40ab6961953c2e3a8b (patch) | |
tree | 3dcdcf45d2ec47a86073d9d946e7e3e319cbe695 /src/passes/MergeBlocks.cpp | |
parent | d3390ed43dbfb4834273b4296521f95b4d448654 (diff) | |
parent | 1021013aa7efdd6d071a8b053f87de846a6d30bd (diff) | |
download | binaryen-22ed7f49494e6ecf6c431b40ab6961953c2e3a8b.tar.gz binaryen-22ed7f49494e6ecf6c431b40ab6961953c2e3a8b.tar.bz2 binaryen-22ed7f49494e6ecf6c431b40ab6961953c2e3a8b.zip |
Merge pull request #103 from mbebenita/static-poly
Use LLVM style static polymorphism for AST Visitors
Diffstat (limited to 'src/passes/MergeBlocks.cpp')
-rw-r--r-- | src/passes/MergeBlocks.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/passes/MergeBlocks.cpp b/src/passes/MergeBlocks.cpp index 3d7afc4cb..c85f3d600 100644 --- a/src/passes/MergeBlocks.cpp +++ b/src/passes/MergeBlocks.cpp @@ -23,8 +23,8 @@ namespace wasm { -struct MergeBlocks : public Pass { - void visitBlock(Block *curr) override { +struct MergeBlocks : public WalkerPass<WasmWalker<MergeBlocks>> { + void visitBlock(Block *curr) { bool more = true; while (more) { more = false; |