diff options
author | Alon Zakai <alonzakai@gmail.com> | 2017-11-21 17:08:28 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-21 17:08:28 -0800 |
commit | 13ec76dfbc1c72a5e77d6a33fca5bf349308162d (patch) | |
tree | 2ceba7b0fab3e9995e1b0e720b9568be88793749 /test | |
parent | 4da2ad6ef86ea21fa95bae10c5b74cbe16202c84 (diff) | |
download | binaryen-13ec76dfbc1c72a5e77d6a33fca5bf349308162d.tar.gz binaryen-13ec76dfbc1c72a5e77d6a33fca5bf349308162d.tar.bz2 binaryen-13ec76dfbc1c72a5e77d6a33fca5bf349308162d.zip |
Fix reading breaks to the function exit (#1304)
* remove unneeded code to handle a br to the return from the function. Now that we use getBlockOrSingleton there, it does that for us anyhow
Diffstat (limited to 'test')
-rw-r--r-- | test/br_to_exit.wasm | bin | 0 -> 26 bytes | |||
-rw-r--r-- | test/br_to_exit.wasm.fromBinary | 10 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test/br_to_exit.wasm b/test/br_to_exit.wasm Binary files differnew file mode 100644 index 000000000..53bded15a --- /dev/null +++ b/test/br_to_exit.wasm diff --git a/test/br_to_exit.wasm.fromBinary b/test/br_to_exit.wasm.fromBinary new file mode 100644 index 000000000..2659ab3b4 --- /dev/null +++ b/test/br_to_exit.wasm.fromBinary @@ -0,0 +1,10 @@ +(module + (type $0 (func)) + (memory $0 0) + (func $0 (; 0 ;) (type $0) + (block $label$0 + (br $label$0) + ) + ) +) + |