aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/BalancedPartitioning.cpp
diff options
context:
space:
mode:
authorAustin <zhenhangwang@huawei.com>2025-08-04 09:27:01 +0800
committerGitHub <noreply@github.com>2025-08-04 09:27:01 +0800
commitc7bacc9f26dd0b51f666fd49f0b5f1eae38a0cac (patch)
treea594257ceed7d9371a4ae18d2212822d6e8853de /llvm/lib/Support/BalancedPartitioning.cpp
parentd6c2e531518e84d154f1f1dccdf4967dbe26b500 (diff)
downloadllvm-c7bacc9f26dd0b51f666fd49f0b5f1eae38a0cac.zip
llvm-c7bacc9f26dd0b51f666fd49f0b5f1eae38a0cac.tar.gz
llvm-c7bacc9f26dd0b51f666fd49f0b5f1eae38a0cac.tar.bz2
[llvm] using wrapper llvm::sort(nfc) (#151000)
using wrapper llvm::sort(nfc)
Diffstat (limited to 'llvm/lib/Support/BalancedPartitioning.cpp')
-rw-r--r--llvm/lib/Support/BalancedPartitioning.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/BalancedPartitioning.cpp b/llvm/lib/Support/BalancedPartitioning.cpp
index ed3b149..1914f4c 100644
--- a/llvm/lib/Support/BalancedPartitioning.cpp
+++ b/llvm/lib/Support/BalancedPartitioning.cpp
@@ -306,7 +306,7 @@ void BalancedPartitioning::split(const FunctionNodeRange Nodes,
unsigned NumNodes = std::distance(Nodes.begin(), Nodes.end());
auto NodesMid = Nodes.begin() + (NumNodes + 1) / 2;
- llvm::sort(Nodes.begin(), Nodes.end(), [](auto &L, auto &R) {
+ llvm::sort(Nodes, [](auto &L, auto &R) {
return L.InputOrderIndex < R.InputOrderIndex;
});