[lld] r278505 - [Core] Simplify a bit. NFCI.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 12 05:34:39 PDT 2016
Author: davide
Date: Fri Aug 12 07:34:39 2016
New Revision: 278505
URL: http://llvm.org/viewvc/llvm-project?rev=278505&view=rev
Log:
[Core] Simplify a bit. NFCI.
Modified:
lld/trunk/lib/Core/SymbolTable.cpp
Modified: lld/trunk/lib/Core/SymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/SymbolTable.cpp?rev=278505&r1=278504&r2=278505&view=diff
==============================================================================
--- lld/trunk/lib/Core/SymbolTable.cpp (original)
+++ lld/trunk/lib/Core/SymbolTable.cpp Fri Aug 12 07:34:39 2016
@@ -223,13 +223,9 @@ bool SymbolTable::AtomMappingInfo::isEqu
const DefinedAtom * const r) {
if (l == r)
return true;
- if (l == getEmptyKey())
+ if (l == getEmptyKey() || r == getEmptyKey())
return false;
- if (r == getEmptyKey())
- return false;
- if (l == getTombstoneKey())
- return false;
- if (r == getTombstoneKey())
+ if (l == getTombstoneKey() || r == getTombstoneKey())
return false;
if (l->contentType() != r->contentType())
return false;
More information about the llvm-commits
mailing list