diff options
author | Thomas Lively <tlively@google.com> | 2023-06-05 13:45:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-05 13:45:19 -0700 |
commit | 90f471ded4f9cdacb630197d192da93f56d01ee9 (patch) | |
tree | 20ed542fc067be3ee048324dd07891370c5ccd82 /src/passes/OptimizeCasts.cpp | |
parent | 876dbb0eff0544799a8ea2b8e8ae27c285520446 (diff) | |
download | binaryen-90f471ded4f9cdacb630197d192da93f56d01ee9.tar.gz binaryen-90f471ded4f9cdacb630197d192da93f56d01ee9.tar.bz2 binaryen-90f471ded4f9cdacb630197d192da93f56d01ee9.zip |
Fix emitting of function reference types without GC (#5737)
We previously had logic to emit GC types used in the IR as their corresponding
top types when GC was not enabled (so e.g. nullfuncref would be emitted as
funcref), but the logic was not robust enough and non-null function references
were not properly emitted as funcref.
Refactor the relevant code to be more robust and future-proof, and add a test
demonstrating that the lowering works as intended.
Diffstat (limited to 'src/passes/OptimizeCasts.cpp')
0 files changed, 0 insertions, 0 deletions