[Mlir-commits] [mlir] 69bcb69 - Apply clang-tidy fixes for llvm-qualified-auto in TensorOps.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Tue Feb 13 20:57:37 PST 2024
Author: Mehdi Amini
Date: 2024-02-13T20:56:05-08:00
New Revision: 69bcb69bbac05c52129ffcae4f8995c2914ff3fc
URL: https://github.com/llvm/llvm-project/commit/69bcb69bbac05c52129ffcae4f8995c2914ff3fc
DIFF: https://github.com/llvm/llvm-project/commit/69bcb69bbac05c52129ffcae4f8995c2914ff3fc.diff
LOG: Apply clang-tidy fixes for llvm-qualified-auto in TensorOps.cpp (NFC)
Added:
Modified:
mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Tensor/IR/TensorOps.cpp b/mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
index bb72cba96ad935..945e8eb4e0f92b 100644
--- a/mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
+++ b/mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
@@ -817,7 +817,7 @@ struct DimOfDestStyleOp : public OpRewritePattern<DimOp> {
return failure();
auto resultIndex = source.cast<OpResult>().getResultNumber();
- auto initOperand = destOp.getDpsInitOperand(resultIndex);
+ auto *initOperand = destOp.getDpsInitOperand(resultIndex);
rewriter.modifyOpInPlace(
dimOp, [&]() { dimOp.getSourceMutable().assign(initOperand->get()); });
More information about the Mlir-commits
mailing list