summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/ELF/Symbols.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Symbols.cpp b/lld/ELF/Symbols.cpp
index 7985e300e0e..bac98ea3948 100644
--- a/lld/ELF/Symbols.cpp
+++ b/lld/ELF/Symbols.cpp
@@ -120,7 +120,7 @@ static uint64_t getSymVA(const Symbol &Sym, int64_t &Addend) {
// Returns true if this is a weak undefined symbol.
bool Symbol::isUndefWeak() const {
// See comment on Lazy in Symbols.h for the details.
- return !isLocal() && isWeak() && (isUndefined() || isLazy());
+ return isWeak() && (isUndefined() || isLazy());
}
uint64_t Symbol::getVA(int64_t Addend) const {
OpenPOWER on IntegriCloud