diff options
author | Kazu Hirata <kazu@google.com> | 2025-05-15 12:18:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-15 12:18:18 -0700 |
commit | 18ecff4f65067adfd9fcd721d93bb29b646e4756 (patch) | |
tree | f400f0b7611fabd71282bd07ab6bbe6fbdeef156 /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
parent | 2661e995ceebd6fd083e5b62aeff21e67b28e9a4 (diff) | |
download | llvm-18ecff4f65067adfd9fcd721d93bb29b646e4756.zip llvm-18ecff4f65067adfd9fcd721d93bb29b646e4756.tar.gz llvm-18ecff4f65067adfd9fcd721d93bb29b646e4756.tar.bz2 |
[llvm] Use llvm::stable_sort (NFC) (#140067)
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp index a476b19..f17d6a2 100644 --- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -6071,10 +6071,9 @@ TargetLowering::ConstraintGroup TargetLowering::getConstraintPreferences( Ret.emplace_back(Code, CType); } - std::stable_sort( - Ret.begin(), Ret.end(), [](ConstraintPair a, ConstraintPair b) { - return getConstraintPiority(a.second) > getConstraintPiority(b.second); - }); + llvm::stable_sort(Ret, [](ConstraintPair a, ConstraintPair b) { + return getConstraintPiority(a.second) > getConstraintPiority(b.second); + }); return Ret; } |