diff options
author | Sam Clegg <sbc@chromium.org> | 2018-06-06 10:22:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-06 10:22:11 -0700 |
commit | 1f9bb69a7011ce527fe009b71e2cea26e5f42b37 (patch) | |
tree | 6d68fbbb9cd6b00ddfe20ac7a92af5f4ec7b977c /src | |
parent | f0d1c31121d40d958fc94c9bbcaa1a5feacc923a (diff) | |
download | binaryen-1f9bb69a7011ce527fe009b71e2cea26e5f42b37.tar.gz binaryen-1f9bb69a7011ce527fe009b71e2cea26e5f42b37.tar.bz2 binaryen-1f9bb69a7011ce527fe009b71e2cea26e5f42b37.zip |
Fix check in fixInvokeFunctionNames (#1588)
This check is supposed to check if rename is needed so it
need to compare to the original.
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm/wasm-emscripten.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm/wasm-emscripten.cpp b/src/wasm/wasm-emscripten.cpp index 637711765..9236fd24c 100644 --- a/src/wasm/wasm-emscripten.cpp +++ b/src/wasm/wasm-emscripten.cpp @@ -585,7 +585,7 @@ struct FixInvokeFunctionNamesWalker : public PostWalker<FixInvokeFunctionNamesWa FunctionType* func = wasm.getFunctionType(curr->functionType); Name newname = fixEmEHSjLjNames(curr->base, getSig(func)); - if (newname == curr->name) + if (newname == curr->base) return; if (curr->base != curr->name) { |