summaryrefslogtreecommitdiff
path: root/src/passes/Souperify.cpp
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2020-12-16 16:40:15 -0500
committerGitHub <noreply@github.com>2020-12-16 13:40:15 -0800
commit83114c51d5aedcb540d578790dbf3173d1775d5c (patch)
treecaace0fed6e225496243121fcb0beed95ad71512 /src/passes/Souperify.cpp
parentb50bdf3491dcd8f1c379df6d64bc8fbc10518326 (diff)
downloadbinaryen-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