[PATCH] D111101: [lld][WebAssembly] Remove redundant check for undefined global (NFC)
Heejin Ahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 4 15:57:18 PDT 2021
aheejin created this revision.
aheejin added a reviewer: sbc100.
Herald added subscribers: wingo, ecnelises, sunfish, jgravelle-google, dschuff.
aheejin requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D111101
Files:
lld/wasm/Relocations.cpp
Index: lld/wasm/Relocations.cpp
===================================================================
--- lld/wasm/Relocations.cpp
+++ lld/wasm/Relocations.cpp
@@ -40,9 +40,6 @@
if (auto *g = dyn_cast<UndefinedGlobal>(sym))
if (g->importName)
return true;
- if (auto *g = dyn_cast<UndefinedGlobal>(sym))
- if (g->importName)
- return true;
return config->allowUndefinedSymbols.count(sym->getName()) != 0;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111101.377047.patch
Type: text/x-patch
Size: 435 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211004/d07e05a5/attachment.bin>
More information about the llvm-commits
mailing list