diff options
author | Thomas Lively <tlively@google.com> | 2024-04-16 01:08:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-16 01:08:13 -0700 |
commit | e4608772910d4d879b0a4783bacba3b4890b828c (patch) | |
tree | 932ebc6aeb457df8c8ade4a0f715404242968478 /test/passes/remove-unused-nonfunction-module-elements_all-features.txt | |
parent | 75993de411117e79c57a09d1276bd1b2773c94df (diff) | |
download | binaryen-e4608772910d4d879b0a4783bacba3b4890b828c.tar.gz binaryen-e4608772910d4d879b0a4783bacba3b4890b828c.tar.bz2 binaryen-e4608772910d4d879b0a4783bacba3b4890b828c.zip |
Do not repeat types names in text output (#6499)
For types that do not have explicit names, we generate index-based names in the
printer. However, we did not previously ensure that the generated types were not
already used as explicit names, so it was possible to print the same name for
multiple types, which is not valid.
Fix the problem by skipping indices that are already used as type names.
Fixes #6492.
Diffstat (limited to 'test/passes/remove-unused-nonfunction-module-elements_all-features.txt')
-rw-r--r-- | test/passes/remove-unused-nonfunction-module-elements_all-features.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/passes/remove-unused-nonfunction-module-elements_all-features.txt b/test/passes/remove-unused-nonfunction-module-elements_all-features.txt index 88998c6ca..e125373d8 100644 --- a/test/passes/remove-unused-nonfunction-module-elements_all-features.txt +++ b/test/passes/remove-unused-nonfunction-module-elements_all-features.txt @@ -342,7 +342,7 @@ ) ) (module - (type $0 (func (param i64))) + (type $1 (func (param i64))) (type $0 (func (param i32))) (tag $e1 (param i64)) (export "e1" (tag $e1)) |