[ELF] Simplify. NFC

llvm-svn: 352499
This commit is contained in:
Fangrui Song 2019-01-29 14:24:35 +00:00
parent cce67a32cf
commit ae82599a30
1 changed files with 1 additions and 1 deletions

View File

@ -326,7 +326,7 @@ Symbol *SymbolTable::addUndefined(StringRef Name, uint8_t Binding,
// We don't report backward references to weak symbols as they can be
// overridden later.
if (Backref && S->Binding != STB_WEAK)
if (Backref && !S->isWeak())
warn("backward reference detected: " + Name + " in " + toString(File) +
" refers to " + toString(S->File));
}