diff options
author | Jacob Gravelle <jgravelle@google.com> | 2018-08-31 18:58:05 -0700 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2018-08-31 18:58:05 -0700 |
commit | 480acf06144a056ee3569823e7cb65fea42cf808 (patch) | |
tree | 188503ecf4d7bf9ade5a729a5c6dccaf47551adf | |
parent | 317d6e948d57c73dd6a181507f5e3d051bcae5d2 (diff) | |
download | binaryen-480acf06144a056ee3569823e7cb65fea42cf808.tar.gz binaryen-480acf06144a056ee3569823e7cb65fea42cf808.tar.bz2 binaryen-480acf06144a056ee3569823e7cb65fea42cf808.zip |
Remove assert that import names match (#1662)
We're about to rewrite both names anyway.
This fixes LLVM's c++ invokes, which get escaped to not match as of
PR #1646
-rw-r--r-- | src/wasm/wasm-emscripten.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/wasm/wasm-emscripten.cpp b/src/wasm/wasm-emscripten.cpp index 7b0df6827..65d385870 100644 --- a/src/wasm/wasm-emscripten.cpp +++ b/src/wasm/wasm-emscripten.cpp @@ -599,10 +599,6 @@ struct FixInvokeFunctionNamesWalker : public PostWalker<FixInvokeFunctionNamesWa if (newname == curr->base) return; - if (curr->base != curr->name) { - Fatal() << "Import name and function name do not match: '" << curr->base << "' '" << curr->name << "'"; - } - assert(importRenames.count(curr->name) == 0); importRenames[curr->name] = newname; // Either rename or remove the existing import |