diff options
author | Alon Zakai <alonzakai@gmail.com> | 2018-11-08 09:53:48 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-08 09:53:48 -0800 |
commit | 43d1e70cedfa02c1c2f5f33aaaf6920d269a4083 (patch) | |
tree | 00a451dee12f739c77baef5ab0a191fe44ba210a /test/threads.fromasm.no-opts | |
parent | 30f0e0a6c9df43f3a70089629b6baa11688bfce4 (diff) | |
download | binaryen-43d1e70cedfa02c1c2f5f33aaaf6920d269a4083.tar.gz binaryen-43d1e70cedfa02c1c2f5f33aaaf6920d269a4083.tar.bz2 binaryen-43d1e70cedfa02c1c2f5f33aaaf6920d269a4083.zip |
Fix a merge-blocks fuzz bug (#1730)
If a block has code after an unreachable element, it makes merging to an outer block tricky - the child block may be unreachable, but the parent have a return type,
(block (result i32)
..
(block
(unreachable)
(nop)
)
)
It's ok to end an unreachable block with a nop, but not a typed one.
To avoid this, if a child block has dce-able code, just ignore it.
Diffstat (limited to 'test/threads.fromasm.no-opts')
0 files changed, 0 insertions, 0 deletions