Skip to content

Commit 1f3b6d8

Browse files
[lld] Use llvm::less_second (NFC) (#141349)
1 parent e089d48 commit 1f3b6d8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lld/MachO/SyntheticSections.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,10 +1248,7 @@ void SymtabSection::emitStabs() {
12481248
}
12491249
}
12501250

1251-
llvm::stable_sort(symbolsNeedingStabs,
1252-
[&](const SortingPair &a, const SortingPair &b) {
1253-
return a.second < b.second;
1254-
});
1251+
llvm::stable_sort(symbolsNeedingStabs, llvm::less_second());
12551252

12561253
// Emit STABS symbols so that dsymutil and/or the debugger can map address
12571254
// regions in the final binary to the source and object files from which they

0 commit comments

Comments
 (0)