diff options
Diffstat (limited to 'lld/lib/Core/SymbolTable.cpp')
-rw-r--r-- | lld/lib/Core/SymbolTable.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/lib/Core/SymbolTable.cpp b/lld/lib/Core/SymbolTable.cpp index 29e58796022..9fd4eb26354 100644 --- a/lld/lib/Core/SymbolTable.cpp +++ b/lld/lib/Core/SymbolTable.cpp @@ -46,7 +46,7 @@ void SymbolTable::add(const AbsoluteAtom &atom) { } void SymbolTable::add(const DefinedAtom &atom) { - if (!atom.name().empty() && + if (!atom.name().empty() && (atom.scope() != DefinedAtom::scopeTranslationUnit)) { // Named atoms cannot be merged by content. assert(atom.merge() != DefinedAtom::mergeByContent); |