[Mlir-commits] [mlir] f74569b - Apply clang-tidy fixes for llvm-qualified-auto in AffineOps.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Mon Apr 11 16:15:12 PDT 2022
Author: Mehdi Amini
Date: 2022-04-11T23:14:47Z
New Revision: f74569b37c7fc94fa3548ff2fb20d09d3a8d50fc
URL: https://github.com/llvm/llvm-project/commit/f74569b37c7fc94fa3548ff2fb20d09d3a8d50fc
DIFF: https://github.com/llvm/llvm-project/commit/f74569b37c7fc94fa3548ff2fb20d09d3a8d50fc.diff
LOG: Apply clang-tidy fixes for llvm-qualified-auto in AffineOps.cpp (NFC)
Added:
Modified:
mlir/lib/Dialect/Affine/IR/AffineOps.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Affine/IR/AffineOps.cpp b/mlir/lib/Dialect/Affine/IR/AffineOps.cpp
index cf4299af6d770..168c5497778f2 100644
--- a/mlir/lib/Dialect/Affine/IR/AffineOps.cpp
+++ b/mlir/lib/Dialect/Affine/IR/AffineOps.cpp
@@ -1689,7 +1689,7 @@ struct AffineForEmptyLoopFolder : public OpRewritePattern<AffineForOp> {
bool iterArgsNotInOrder = false;
for (unsigned i = 0, e = yieldOp->getNumOperands(); i < e; ++i) {
Value val = yieldOp.getOperand(i);
- auto iterArgIt = llvm::find(iterArgs, val);
+ auto *iterArgIt = llvm::find(iterArgs, val);
if (iterArgIt == iterArgs.end()) {
// `val` is defined outside of the loop.
assert(forOp.isDefinedOutsideOfLoop(val) &&
More information about the Mlir-commits
mailing list