diff options
author | Alon Zakai <alonzakai@gmail.com> | 2017-07-12 19:27:17 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-12 19:27:17 -0700 |
commit | b2c17a105e9fbe86c059793032ee0be676245a8a (patch) | |
tree | 72cf9673e9de93c4c3106612416ebd9e0329a19c /src/wasm/wasm-binary.cpp | |
parent | 25cbf641c6133d5156e8591072d2705fde92752b (diff) | |
parent | 6159fb42fcd2dae593ee61ebb7e3e163445ae9d0 (diff) | |
download | binaryen-b2c17a105e9fbe86c059793032ee0be676245a8a.tar.gz binaryen-b2c17a105e9fbe86c059793032ee0be676245a8a.tar.bz2 binaryen-b2c17a105e9fbe86c059793032ee0be676245a8a.zip |
Merge pull request #1087 from WebAssembly/fuzz-2
Fuzz fixes
Diffstat (limited to 'src/wasm/wasm-binary.cpp')
-rw-r--r-- | src/wasm/wasm-binary.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/wasm/wasm-binary.cpp b/src/wasm/wasm-binary.cpp index efbd82e8b..2df7f2e26 100644 --- a/src/wasm/wasm-binary.cpp +++ b/src/wasm/wasm-binary.cpp @@ -14,10 +14,11 @@ * limitations under the License. */ -#include "wasm-binary.h" - #include <fstream> + #include "support/bits.h" +#include "wasm-binary.h" +#include "ast/branch-utils.h" namespace wasm { @@ -544,7 +545,7 @@ void WasmBinaryWriter::recurse(Expression*& curr) { } static bool brokenTo(Block* block) { - return block->name.is() && BreakSeeker::has(block, block->name); + return block->name.is() && BranchUtils::BranchSeeker::has(block, block->name); } void WasmBinaryWriter::visitBlock(Block *curr) { |