[lld] r315734 - Simplify. NFC.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 13 12:02:08 PDT 2017
Author: rafael
Date: Fri Oct 13 12:02:08 2017
New Revision: 315734
URL: http://llvm.org/viewvc/llvm-project?rev=315734&view=rev
Log:
Simplify. NFC.
Modified:
lld/trunk/ELF/SymbolTable.cpp
Modified: lld/trunk/ELF/SymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SymbolTable.cpp?rev=315734&r1=315733&r2=315734&view=diff
==============================================================================
--- lld/trunk/ELF/SymbolTable.cpp (original)
+++ lld/trunk/ELF/SymbolTable.cpp Fri Oct 13 12:02:08 2017
@@ -510,7 +510,7 @@ void SymbolTable::addShared(StringRef Na
// An undefined symbol with non default visibility must be satisfied
// in the same DSO.
if (WasInserted ||
- (isa<Undefined>(Body) && Body->getVisibility() == STV_DEFAULT)) {
+ (Body->isUndefined() && Body->getVisibility() == STV_DEFAULT)) {
replaceBody<SharedSymbol>(S, File, Name, Sym.st_other, Sym.getType(), &Sym,
Verdef);
if (!S->isWeak())
More information about the llvm-commits
mailing list