diff options
author | Alon Zakai <azakai@google.com> | 2022-08-08 11:38:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-08 11:38:00 -0700 |
commit | ec7af8390fb19fff06f2c5a385285370455d810a (patch) | |
tree | b7a8926358677398203df9aadb863afae1c69d64 /src/passes/SimplifyLocals.cpp | |
parent | 708bc424fcf6398c700dd6d209c6c55ff6f9e2e9 (diff) | |
download | binaryen-ec7af8390fb19fff06f2c5a385285370455d810a.tar.gz binaryen-ec7af8390fb19fff06f2c5a385285370455d810a.tar.bz2 binaryen-ec7af8390fb19fff06f2c5a385285370455d810a.zip |
[GUFA] Fix readFromData on a function literal (#4883)
A function literal (ref.func) should never reach a struct or array get, but
if there is a cast then it can look like they might arrive. We filter in ref.cast
which avoids that (since casting a function to a data type will trap), but
there is also br_on_cast which is not yet optimized. This PR adds code
to avoid an assert in readFromData in that case.
Diffstat (limited to 'src/passes/SimplifyLocals.cpp')
0 files changed, 0 insertions, 0 deletions