summaryrefslogtreecommitdiff
path: root/src/wasm-emscripten.h
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2020-12-17 22:35:16 -0500
committerGitHub <noreply@github.com>2020-12-17 19:35:16 -0800
commitae16f5cb995e3756ccb2093749bc5595fd86a2df (patch)
tree069128aa05216685bb7866de4a90a84c3b68bfa5 /src/wasm-emscripten.h
parentcad723a3827913f53ecfa7189b011be389d28ae7 (diff)
downloadbinaryen-ae16f5cb995e3756ccb2093749bc5595fd86a2df.tar.gz
binaryen-ae16f5cb995e3756ccb2093749bc5595fd86a2df.tar.bz2
binaryen-ae16f5cb995e3756ccb2093749bc5595fd86a2df.zip
[module-splitting] Fix a crash when a function is exported twice (#3455)
`ModuleSplitter::thunkExportedSecondaryFunctions` creates a thunk for each secondary function that needs to be exported from the main module. Previously, if a secondary function was exported twice, this code would try to create two thunks for it rather than just making one thunk and exporting it twice. This caused a fatal error because the second thunk had the same name as the first thunk and therefore could not be added to the module. This PR fixes the issue by creating no more than one thunk per function.
Diffstat (limited to 'src/wasm-emscripten.h')
0 files changed, 0 insertions, 0 deletions