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