[Mlir-commits] [mlir] 0149a43 - Apply clang-tidy fixes for llvm-qualified-auto in LinalgOps.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Mon Apr 11 21:40:34 PDT 2022
Author: Mehdi Amini
Date: 2022-04-12T04:39:58Z
New Revision: 0149a437e21015a7d33bab8371386951a1744ebe
URL: https://github.com/llvm/llvm-project/commit/0149a437e21015a7d33bab8371386951a1744ebe
DIFF: https://github.com/llvm/llvm-project/commit/0149a437e21015a7d33bab8371386951a1744ebe.diff
LOG: Apply clang-tidy fixes for llvm-qualified-auto in LinalgOps.cpp (NFC)
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 a701cb6016dd3..76b18c7301533 100644
--- a/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
+++ b/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
@@ -1718,7 +1718,7 @@ static void populateMap(LinalgOp linalgOp, ArrayRef<OpOperand *> operands,
// Get the `sourceShape` of the `sourceType`. If the operand is a result of
// `tensor.cast` operation and source of the cast operation has a static
// shape, then assign it to the `sourceShape`.
- auto parentOp = src.getDefiningOp();
+ auto *parentOp = src.getDefiningOp();
ArrayRef<int64_t> sourceShape = sourceType.getShape();
if (parentOp) {
if (auto castOp = dyn_cast<tensor::CastOp>(parentOp)) {
More information about the Mlir-commits
mailing list