diff options
author | Thomas Lively <tlively@google.com> | 2023-10-09 10:12:53 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-09 10:12:53 -0700 |
commit | 1cd81268627c71f36f45d6ef875dee84a79630f4 (patch) | |
tree | d2f5c9e6e5013d2582035f5a638244d896d88d19 /src/passes/Unsubtyping.cpp | |
parent | b3775b5e4e150439276ad3d34f1bb564b28e8ef5 (diff) | |
download | binaryen-1cd81268627c71f36f45d6ef875dee84a79630f4.tar.gz binaryen-1cd81268627c71f36f45d6ef875dee84a79630f4.tar.bz2 binaryen-1cd81268627c71f36f45d6ef875dee84a79630f4.zip |
Fix a bug printing and emitting empty, passive element segments (#6002)
Empty, passive element segments were always emitted as having `func` type
because all their elements trivially were RefFunc (because they have no
elements) and because we were incorrectly checking table types if they existed
instead of the element segment's type directly to see if it was non-func.
Fix the bug by checking each element segment's type directly and add a test.
Diffstat (limited to 'src/passes/Unsubtyping.cpp')
0 files changed, 0 insertions, 0 deletions