[Mlir-commits] [mlir] ce7466f - NFC: Rewrite auto castIter -> const auto *castIter (#133521)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Apr 16 10:30:56 PDT 2025


Author: AdityaK
Date: 2025-04-16T10:30:53-07:00
New Revision: ce7466f66c8a279917cd1c9486846b6857a82fe8

URL: https://github.com/llvm/llvm-project/commit/ce7466f66c8a279917cd1c9486846b6857a82fe8
DIFF: https://github.com/llvm/llvm-project/commit/ce7466f66c8a279917cd1c9486846b6857a82fe8.diff

LOG: NFC: Rewrite auto castIter -> const auto *castIter (#133521)

Added: 
    

Modified: 
    mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp b/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
index d6b093c5fb86b..1c160911ce780 100644
--- a/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
+++ b/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
@@ -3598,7 +3598,7 @@ void MatmulOp::regionBuilder(ImplicitLocOpBuilder &b, Block &block,
   SmallVector<Value> yields;
 
   TypeFn castVal = TypeFn::cast_signed;
-  auto castIter = llvm::find_if(attrs, [&](const NamedAttribute &attr) {
+  const auto *castIter = llvm::find_if(attrs, [&](const NamedAttribute &attr) {
     return attr.getName() == "cast";
   });
   if (castIter != attrs.end()) {


        


More information about the Mlir-commits mailing list