[Mlir-commits] [mlir] f5865c8 - Apply clang-tidy fixes for llvm-qualified-auto in SCF.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Tue Nov 8 16:44:07 PST 2022
Author: Mehdi Amini
Date: 2022-11-09T00:41:30Z
New Revision: f5865c8701fcbb3f54aee5df370f81337eb0a1cf
URL: https://github.com/llvm/llvm-project/commit/f5865c8701fcbb3f54aee5df370f81337eb0a1cf
DIFF: https://github.com/llvm/llvm-project/commit/f5865c8701fcbb3f54aee5df370f81337eb0a1cf.diff
LOG: Apply clang-tidy fixes for llvm-qualified-auto in SCF.cpp (NFC)
Added:
Modified:
mlir/lib/Dialect/SCF/IR/SCF.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/SCF/IR/SCF.cpp b/mlir/lib/Dialect/SCF/IR/SCF.cpp
index 3f65c1ce0107f..7c65ff29700f4 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)
More information about the Mlir-commits
mailing list