[llvm] 3a0d0c6 - [NFC][YAML] Switch `std::sort` to `llvm::sort` (#130448)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 8 16:08:11 PST 2025
Author: Vitaly Buka
Date: 2025-03-08T16:08:08-08:00
New Revision: 3a0d0c6b1edfa4a71e494938e8c6e8ee8cfe83b7
URL: https://github.com/llvm/llvm-project/commit/3a0d0c6b1edfa4a71e494938e8c6e8ee8cfe83b7
DIFF: https://github.com/llvm/llvm-project/commit/3a0d0c6b1edfa4a71e494938e8c6e8ee8cfe83b7.diff
LOG: [NFC][YAML] Switch `std::sort` to `llvm::sort` (#130448)
Follow up to #130379.
Added:
Modified:
llvm/include/llvm/IR/ModuleSummaryIndexYAML.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/IR/ModuleSummaryIndexYAML.h b/llvm/include/llvm/IR/ModuleSummaryIndexYAML.h
index adcd17783d6c0..b662013d1f998 100644
--- a/llvm/include/llvm/IR/ModuleSummaryIndexYAML.h
+++ b/llvm/include/llvm/IR/ModuleSummaryIndexYAML.h
@@ -349,11 +349,11 @@ template <> struct MappingTraits<ModuleSummaryIndex> {
if (io.outputting()) {
std::vector<StringRef> CfiFunctionDefs(index.CfiFunctionDefs.begin(),
index.CfiFunctionDefs.end());
- std::sort(CfiFunctionDefs.begin(), CfiFunctionDefs.end());
+ llvm::sort(CfiFunctionDefs);
io.mapOptional("CfiFunctionDefs", CfiFunctionDefs);
std::vector<StringRef> CfiFunctionDecls(index.CfiFunctionDecls.begin(),
index.CfiFunctionDecls.end());
- std::sort(CfiFunctionDecls.begin(), CfiFunctionDecls.end());
+ llvm::sort(CfiFunctionDecls);
io.mapOptional("CfiFunctionDecls", CfiFunctionDecls);
} else {
std::vector<std::string> CfiFunctionDefs;
More information about the llvm-commits
mailing list