diff options
author | Alon Zakai <alonzakai@gmail.com> | 2017-07-18 11:22:08 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-18 11:22:08 -0700 |
commit | 0b2122d49a28f199ef7fde247e7e7a14829fa96e (patch) | |
tree | def77ee01192fd27fca6cec61fa82c4525873ddf /src/wasm-builder.h | |
parent | 275c5ebafdf2860edb965d322bdad4c3e3717bea (diff) | |
parent | 2daf000f471afdcf21f784f83440bb4bdc1a9de9 (diff) | |
download | binaryen-0b2122d49a28f199ef7fde247e7e7a14829fa96e.tar.gz binaryen-0b2122d49a28f199ef7fde247e7e7a14829fa96e.tar.bz2 binaryen-0b2122d49a28f199ef7fde247e7e7a14829fa96e.zip |
Merge pull request #1100 from WebAssembly/fuzz-4
Yet more fuzz fixes
Diffstat (limited to 'src/wasm-builder.h')
-rw-r--r-- | src/wasm-builder.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/wasm-builder.h b/src/wasm-builder.h index 41aaf6766..f702342d2 100644 --- a/src/wasm-builder.h +++ b/src/wasm-builder.h @@ -315,28 +315,6 @@ public: return block; } - // ensures the first node is a block, if it isn't already, and merges in the second, - // either as a single element or, if a block, by appending to the first block - Block* blockifyMerge(Expression* any, Expression* append) { - Block* block = nullptr; - if (any) block = any->dynCast<Block>(); - if (!block) { - block = makeBlock(any); - } else { - assert(!isConcreteWasmType(block->type)); - } - auto* other = append->dynCast<Block>(); - if (!other) { - block->list.push_back(append); - } else { - for (auto* item : other->list) { - block->list.push_back(item); - } - } - block->finalize(); - return block; - } - // a helper for the common pattern of a sequence of two expressions. Similar to // blockify, but does *not* reuse a block if the first is one. Block* makeSequence(Expression* left, Expression* right) { |