From bb2e222407c199e330976aebfccb0e05bdf03957 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 18 Apr 2025 20:34:20 -0700 Subject: [PATCH] [lld] Use llvm::less_first (NFC) (#136397) --- lld/MachO/MapFile.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lld/MachO/MapFile.cpp b/lld/MachO/MapFile.cpp index 8919c8d2f9b9..f3e221a700b1 100644 --- a/lld/MachO/MapFile.cpp +++ b/lld/MachO/MapFile.cpp @@ -116,9 +116,7 @@ static MapInfo gatherMapInfo() { // cstrings are not stored in sorted order in their OutputSections, so we sort // them here. for (auto &liveCStrings : info.liveCStringsForSection) - parallelSort(liveCStrings.second, [](const auto &p1, const auto &p2) { - return p1.first < p2.first; - }); + parallelSort(liveCStrings.second, llvm::less_first()); return info; }