diff options
author | Alon Zakai <azakai@google.com> | 2020-11-18 13:20:20 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-18 13:20:20 -0800 |
commit | f7547064e38bcc8518d6ebf1a2de0d7a76d6ad15 (patch) | |
tree | 6ff879becd4f4163828aee36a028319e5d0d99f7 /src/passes/FuncCastEmulation.cpp | |
parent | 1e527ec6c1553a47bceb60b6c70011552019b7e6 (diff) | |
download | binaryen-f7547064e38bcc8518d6ebf1a2de0d7a76d6ad15.tar.gz binaryen-f7547064e38bcc8518d6ebf1a2de0d7a76d6ad15.tar.bz2 binaryen-f7547064e38bcc8518d6ebf1a2de0d7a76d6ad15.zip |
[DeadArgumentElimination] Don't DAE a ref.func-ed class (#3380)
If we take a reference of a function, it is dangerous to change the function's
type (which removing dead arguments does), as that would be an observable
different from the outside - the type changes, and some params are now ignored,
and others are reordered.
In theory we could find out if the reference does not escape, but that's not
trivial.
Related to #3378 but not quite the same.
Diffstat (limited to 'src/passes/FuncCastEmulation.cpp')
0 files changed, 0 insertions, 0 deletions