summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp b/lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp
index 1a03ede80ac..a582c975799 100644
--- a/lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp
+++ b/lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp
@@ -272,8 +272,8 @@ std::error_code processSymboledSection(DefinedAtom::ContentType atomType,
Atom::Scope rScope = atomScope(rhs->scope);
if (lScope != rScope)
return lScope < rScope;
- // If same address and scope, sort by name.
- return (lhs->name.compare(rhs->name) < 1);
+ // If same address and scope, sort by name.
+ return lhs->name < rhs->name;
});
// Debug logging of symbols.
OpenPOWER on IntegriCloud