From 480acf06144a056ee3569823e7cb65fea42cf808 Mon Sep 17 00:00:00 2001 From: Jacob Gravelle Date: Fri, 31 Aug 2018 18:58:05 -0700 Subject: 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 --- src/wasm/wasm-emscripten.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') 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 PostWalkerbase) 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 -- cgit v1.2.3