[lld] [lld] Use llvm::less_first (NFC) (PR #136397)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 18 19:37:10 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lld
Author: Kazu Hirata (kazutakahirata)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/136397.diff
1 Files Affected:
- (modified) lld/MachO/MapFile.cpp (+1-3)
``````````diff
diff --git a/lld/MachO/MapFile.cpp b/lld/MachO/MapFile.cpp
index 8919c8d2f9b9c..f3e221a700b14 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;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/136397
More information about the llvm-commits
mailing list