From f5865c8701fcbb3f54aee5df370f81337eb0a1cf Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Thu, 3 Nov 2022 20:28:33 +0000 Subject: [PATCH] Apply clang-tidy fixes for llvm-qualified-auto in SCF.cpp (NFC) --- mlir/lib/Dialect/SCF/IR/SCF.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlir/lib/Dialect/SCF/IR/SCF.cpp b/mlir/lib/Dialect/SCF/IR/SCF.cpp index 3f65c1c..7c65ff2 100644 --- a/mlir/lib/Dialect/SCF/IR/SCF.cpp +++ b/mlir/lib/Dialect/SCF/IR/SCF.cpp @@ -3529,7 +3529,7 @@ void IndexSwitchOp::getRegionInvocationBounds( } unsigned liveIndex = getNumRegions() - 1; - auto it = llvm::find(getCases(), operandValue.getInt()); + const auto *it = llvm::find(getCases(), operandValue.getInt()); if (it != getCases().end()) liveIndex = std::distance(getCases().begin(), it); for (unsigned i = 0, e = getNumRegions(); i < e; ++i) -- 2.7.4