diff options
author | Alon Zakai <azakai@google.com> | 2021-05-10 15:07:05 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-10 15:07:05 -0700 |
commit | 5499ef491a264b02d24180f5dad824feec52074a (patch) | |
tree | d16bf32d66f65df10b18a8dd8f53aeae84bf1df2 /src/passes/Print.cpp | |
parent | 75c8584997e7e09a20c7ebba1802461362b67a7b (diff) | |
download | binaryen-5499ef491a264b02d24180f5dad824feec52074a.tar.gz binaryen-5499ef491a264b02d24180f5dad824feec52074a.tar.bz2 binaryen-5499ef491a264b02d24180f5dad824feec52074a.zip |
[Wasm GC] Fix casting code in interpreter (#3873)
The logic there would construct the cast value separately for functions and data
(as we must), and then in an attempt to share code, would then check if the
cast succeed or not (and if not, do nothing with the cast value).
But this was wrong, as in some weird casts (like a struct to a function) we
cannot construct a valid cast value, and we error there. Instead, check if the
cast works first, once we know enough to do so, and only then construct the
cast value if so.
Diffstat (limited to 'src/passes/Print.cpp')
0 files changed, 0 insertions, 0 deletions