Skip to content

Commit bb2e222

Browse files
[lld] Use llvm::less_first (NFC) (#136397)
1 parent e006936 commit bb2e222

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lld/MachO/MapFile.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,7 @@ static MapInfo gatherMapInfo() {
116116
// cstrings are not stored in sorted order in their OutputSections, so we sort
117117
// them here.
118118
for (auto &liveCStrings : info.liveCStringsForSection)
119-
parallelSort(liveCStrings.second, [](const auto &p1, const auto &p2) {
120-
return p1.first < p2.first;
121-
});
119+
parallelSort(liveCStrings.second, llvm::less_first());
122120
return info;
123121
}
124122

0 commit comments

Comments
 (0)