Skip to content

Commit 480acf0

Browse files
jgravelle-googlesbc100
authored andcommitted
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
1 parent 317d6e9 commit 480acf0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/wasm/wasm-emscripten.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -599,10 +599,6 @@ struct FixInvokeFunctionNamesWalker : public PostWalker<FixInvokeFunctionNamesWa
599599
if (newname == curr->base)
600600
return;
601601

602-
if (curr->base != curr->name) {
603-
Fatal() << "Import name and function name do not match: '" << curr->base << "' '" << curr->name << "'";
604-
}
605-
606602
assert(importRenames.count(curr->name) == 0);
607603
importRenames[curr->name] = newname;
608604
// Either rename or remove the existing import

0 commit comments

Comments
 (0)