diff options
author | Alon Zakai <azakai@google.com> | 2022-04-22 10:42:43 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-22 10:42:43 -0700 |
commit | 2ab19d9ac528ff11fa14b184a84c92e72d5b0163 (patch) | |
tree | 015d0a00203a1fc08c95e795b2e1c9bc68817050 /src/passes/SignatureRefining.cpp | |
parent | 6000629ae7cc2962483cd0d7ae4a770c8f2a34a0 (diff) | |
download | binaryen-2ab19d9ac528ff11fa14b184a84c92e72d5b0163.tar.gz binaryen-2ab19d9ac528ff11fa14b184a84c92e72d5b0163.tar.bz2 binaryen-2ab19d9ac528ff11fa14b184a84c92e72d5b0163.zip |
[NominalFuzzing] Fix getHeapTypeCounts() on unreachable casts (#4609)
The cast instruction may be unreachable but the intended type for the cast
still needs to be collected. Otherwise we end up with problems both during
optimizations that look at heap types and in printing (which will use the heap
type in code but not declare it).
Diff without whitespace is much smaller: this just moves code around so
that we can use a template to avoid code duplication. The actual change
is just to scan ->intendedType unconditionally, and not ignore it if the
cast is unreachable.
Diffstat (limited to 'src/passes/SignatureRefining.cpp')
0 files changed, 0 insertions, 0 deletions