diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-04-11 19:43:58 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-04-11 19:43:58 -0700 |
commit | 73c606a04d01dc7018d028eed3216a507ab03ee9 (patch) | |
tree | bf4255d2fead5fdf721ea178607abfc408cd6ac8 /src/passes/MergeBlocks.cpp | |
parent | 65d9334b3066bae667e729f3202f7aa2d7c11530 (diff) | |
parent | 1044d6cbca6d279d457cdd1cf7000671ec48e841 (diff) | |
download | binaryen-73c606a04d01dc7018d028eed3216a507ab03ee9.tar.gz binaryen-73c606a04d01dc7018d028eed3216a507ab03ee9.tar.bz2 binaryen-73c606a04d01dc7018d028eed3216a507ab03ee9.zip |
Merge pull request #334 from WebAssembly/opts2
More optimizations
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 ab210123c..578d4fc45 100644 --- a/src/passes/MergeBlocks.cpp +++ b/src/passes/MergeBlocks.cpp @@ -29,7 +29,7 @@ struct MergeBlocks : public WalkerPass<PostWalker<MergeBlocks>> { while (more) { more = false; for (size_t i = 0; i < curr->list.size(); i++) { - Block* child = curr->list[i]->dyn_cast<Block>(); + Block* child = curr->list[i]->dynCast<Block>(); if (!child) continue; if (child->name.is()) continue; // named blocks can have breaks to them (and certainly do, if we ran RemoveUnusedNames and RemoveUnusedBrs) ExpressionList merged; |