[PATCH] D39780: Remove unused condition.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 29 17:08:44 PST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rLLD319395: Remove unused condition. (authored by ruiu).

Changed prior to commit:
  https://reviews.llvm.org/D39780?vs=122028&id=124860#toc

Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D39780

Files:
  ELF/Symbols.cpp


Index: ELF/Symbols.cpp
===================================================================
--- ELF/Symbols.cpp
+++ ELF/Symbols.cpp
@@ -120,7 +120,7 @@
 // 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 {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39780.124860.patch
Type: text/x-patch
Size: 465 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171130/541e1edf/attachment.bin>


More information about the llvm-commits mailing list