From 83e050e5bcde8534b3a3c4ff8d06f4fc6dbf0fd6 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 23 May 2025 23:35:19 -0700 Subject: [PATCH] [lld] Use llvm::less_second (NFC) --- lld/MachO/SyntheticSections.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lld/MachO/SyntheticSections.cpp b/lld/MachO/SyntheticSections.cpp index dfacaf2ef4e0d..c98264871495b 100644 --- a/lld/MachO/SyntheticSections.cpp +++ b/lld/MachO/SyntheticSections.cpp @@ -1248,10 +1248,7 @@ void SymtabSection::emitStabs() { } } - llvm::stable_sort(symbolsNeedingStabs, - [&](const SortingPair &a, const SortingPair &b) { - return a.second < b.second; - }); + llvm::stable_sort(symbolsNeedingStabs, llvm::less_second()); // Emit STABS symbols so that dsymutil and/or the debugger can map address // regions in the final binary to the source and object files from which they