[Mlir-commits] [mlir] [mlir] Use llvm::less_second (NFC) (PR #141350)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sat May 24 08:23:10 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Kazu Hirata (kazutakahirata)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/141350.diff
1 Files Affected:
- (modified) mlir/lib/IR/AsmPrinter.cpp (+1-3)
``````````diff
diff --git a/mlir/lib/IR/AsmPrinter.cpp b/mlir/lib/IR/AsmPrinter.cpp
index c7194aca7ff12..fc1806900c0aa 100644
--- a/mlir/lib/IR/AsmPrinter.cpp
+++ b/mlir/lib/IR/AsmPrinter.cpp
@@ -1110,9 +1110,7 @@ void AliasInitializer::initializeAliases(
llvm::MapVector<const void *, SymbolAlias> &symbolToAlias) {
SmallVector<std::pair<const void *, InProgressAliasInfo>, 0>
unprocessedAliases = visitedSymbols.takeVector();
- llvm::stable_sort(unprocessedAliases, [](const auto &lhs, const auto &rhs) {
- return lhs.second < rhs.second;
- });
+ llvm::stable_sort(unprocessedAliases, llvm::less_second());
// This keeps track of all of the non-numeric names that are in flight,
// allowing us to check for duplicates.
``````````
</details>
https://github.com/llvm/llvm-project/pull/141350
More information about the Mlir-commits
mailing list