projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e0ae7b
)
Simplify. NFC.
author
Rafael Espindola
<rafael.espindola@gmail.com>
Fri, 13 Oct 2017 19:02:08 +0000
(19:02 +0000)
committer
Rafael Espindola
<rafael.espindola@gmail.com>
Fri, 13 Oct 2017 19:02:08 +0000
(19:02 +0000)
llvm-svn: 315734
lld/ELF/SymbolTable.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/SymbolTable.cpp
b/lld/ELF/SymbolTable.cpp
index 707e7595e53976b3ef3c9b87a17fce9265cc4dd5..78e73c27b462be7da0213f9bdd5750d7e1c6dc8b 100644
(file)
--- a/
lld/ELF/SymbolTable.cpp
+++ b/
lld/ELF/SymbolTable.cpp
@@
-510,7
+510,7
@@
void SymbolTable::addShared(StringRef Name, SharedFile<ELFT> *File,
// 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())