[llvm] [NFC][YAML] Switch `std::sort` to `llvm::sort` (PR #130448)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 8 16:07:07 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-ir
Author: Vitaly Buka (vitalybuka)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/130448.diff
1 Files Affected:
- (modified) llvm/include/llvm/IR/ModuleSummaryIndexYAML.h (+2-2)
``````````diff
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;
``````````
</details>
https://github.com/llvm/llvm-project/pull/130448
More information about the llvm-commits
mailing list