summaryrefslogtreecommitdiff
path: root/test/break-to-return.wasm.fromBinary
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2017-09-12 17:12:56 -0700
committerGitHub <noreply@github.com>2017-09-12 17:12:56 -0700
commit048bcadbc0fdc9866e70995984813551aa5681ea (patch)
treec401084f7a48aac8ef236f3f6f954d71ceec8884 /test/break-to-return.wasm.fromBinary
parentc6729400f68a346c1d51702946bf6026638782a6 (diff)
downloadbinaryen-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/break-to-return.wasm.fromBinary')
-rw-r--r--test/break-to-return.wasm.fromBinary4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/break-to-return.wasm.fromBinary b/test/break-to-return.wasm.fromBinary
index 0bf75cc8b..d030ca7f0 100644
--- a/test/break-to-return.wasm.fromBinary
+++ b/test/break-to-return.wasm.fromBinary
@@ -3,8 +3,8 @@
(memory $0 256 256)
(export "add" (func $0))
(func $0 (type $0) (param $var$0 i32) (param $var$1 i32) (result i32)
- (block $binaryen|break-to-return (result i32)
- (br $binaryen|break-to-return
+ (block $label$0 (result i32)
+ (br $label$0
(i32.add
(get_local $var$0)
(get_local $var$1)