diff options
author | Alon Zakai <azakai@google.com> | 2021-06-18 11:32:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-18 11:32:44 -0700 |
commit | e1586984480daf475d0941d6b6b5640fbec80558 (patch) | |
tree | 83683e095f51acf35ec2f2a438d04fc20adb46dc /test/passes/minify-imports_all-features.txt | |
parent | ea0b9ee1e1083962da9bfa52fa09870fcc4f72bb (diff) | |
download | binaryen-e1586984480daf475d0941d6b6b5640fbec80558.tar.gz binaryen-e1586984480daf475d0941d6b6b5640fbec80558.tar.bz2 binaryen-e1586984480daf475d0941d6b6b5640fbec80558.zip |
[Wasm GC] Fix RSE on non-nullable locals (#3943)
RedundantSetElimination checks if a local already has the default
value when we assign the default to it. For a non-nullable local, however,
there is no initial value - it cannot be used before it is assigned to. So
we just need to skip such locals, and not assume they contain a default
value we can compare against (we would assert on trying to create a
"zero" for such a non-nullable type).
Fixes #3942
Diffstat (limited to 'test/passes/minify-imports_all-features.txt')
0 files changed, 0 insertions, 0 deletions