diff options
author | Alon Zakai <alonzakai@gmail.com> | 2017-09-12 17:12:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-12 17:12:56 -0700 |
commit | 048bcadbc0fdc9866e70995984813551aa5681ea (patch) | |
tree | c401084f7a48aac8ef236f3f6f954d71ceec8884 /test/unreachable-pops.wasm.fromBinary | |
parent | c6729400f68a346c1d51702946bf6026638782a6 (diff) | |
download | binaryen-048bcadbc0fdc9866e70995984813551aa5681ea.tar.gz binaryen-048bcadbc0fdc9866e70995984813551aa5681ea.tar.bz2 binaryen-048bcadbc0fdc9866e70995984813551aa5681ea.zip |
Avoid new blocks in binary reading/writing (#1165)
* don't emit a toplevel block if we don't need to, as in wasm it is a list context
* don't create unnecessary blocks in wasm reading
Diffstat (limited to 'test/unreachable-pops.wasm.fromBinary')
-rw-r--r-- | test/unreachable-pops.wasm.fromBinary | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unreachable-pops.wasm.fromBinary b/test/unreachable-pops.wasm.fromBinary index 4e14995cf..3f3c51b13 100644 --- a/test/unreachable-pops.wasm.fromBinary +++ b/test/unreachable-pops.wasm.fromBinary @@ -2,7 +2,7 @@ (type $0 (func (result i32))) (memory $0 0) (func $0 (type $0) (result i32) - (block $label$0 (result i32) + (block $label$1 (result i32) (unreachable) ) ) |