diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2020-12-16 16:40:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-16 13:40:15 -0800 |
commit | 83114c51d5aedcb540d578790dbf3173d1775d5c (patch) | |
tree | caace0fed6e225496243121fcb0beed95ad71512 /src/passes/Souperify.cpp | |
parent | b50bdf3491dcd8f1c379df6d64bc8fbc10518326 (diff) | |
download | binaryen-83114c51d5aedcb540d578790dbf3173d1775d5c.tar.gz binaryen-83114c51d5aedcb540d578790dbf3173d1775d5c.tar.bz2 binaryen-83114c51d5aedcb540d578790dbf3173d1775d5c.zip |
Fix wasm-split name collision bug (#3447)
During module splitting, a map is constructed from internal names to their
corresponding export names. This code previously did not take into account the
fact that the same internal name may be used by different kinds of
entities (e.g. a table and a memory may have the same internal name), which
resulted in the secondary module incorrectly using the same import name for all
of the entities that shared an internal name. This PR fixes the problem by
including the ExternalKind of the entity in the keys of the export map.
Diffstat (limited to 'src/passes/Souperify.cpp')
0 files changed, 0 insertions, 0 deletions