diff --git a/lld/wasm/Relocations.cpp b/lld/wasm/Relocations.cpp --- a/lld/wasm/Relocations.cpp +++ b/lld/wasm/Relocations.cpp @@ -40,9 +40,6 @@ if (auto *g = dyn_cast(sym)) if (g->importName) return true; - if (auto *g = dyn_cast(sym)) - if (g->importName) - return true; return config->allowUndefinedSymbols.count(sym->getName()) != 0; }