[Mlir-commits] [mlir] 6db6e7e - Apply clang-tidy fixes for llvm-qualified-auto in LowerToLLVM.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Sat Oct 21 17:32:46 PDT 2023
Author: Mehdi Amini
Date: 2023-10-21T17:31:37-07:00
New Revision: 6db6e7e72edc1b9366dd81f22fd4f14fa57be549
URL: https://github.com/llvm/llvm-project/commit/6db6e7e72edc1b9366dd81f22fd4f14fa57be549
DIFF: https://github.com/llvm/llvm-project/commit/6db6e7e72edc1b9366dd81f22fd4f14fa57be549.diff
LOG: Apply clang-tidy fixes for llvm-qualified-auto in LowerToLLVM.cpp (NFC)
Added:
Modified:
mlir/examples/toy/Ch7/mlir/LowerToLLVM.cpp
Removed:
################################################################################
diff --git a/mlir/examples/toy/Ch7/mlir/LowerToLLVM.cpp b/mlir/examples/toy/Ch7/mlir/LowerToLLVM.cpp
index f05f1c2dc33881d..67b82f91b1dbd22 100644
--- a/mlir/examples/toy/Ch7/mlir/LowerToLLVM.cpp
+++ b/mlir/examples/toy/Ch7/mlir/LowerToLLVM.cpp
@@ -61,7 +61,7 @@ class PrintOpLowering : public ConversionPattern {
LogicalResult
matchAndRewrite(Operation *op, ArrayRef<Value> operands,
ConversionPatternRewriter &rewriter) const override {
- auto context = rewriter.getContext();
+ auto *context = rewriter.getContext();
auto memRefType = llvm::cast<MemRefType>((*op->operand_type_begin()));
auto memRefShape = memRefType.getShape();
auto loc = op->getLoc();
More information about the Mlir-commits
mailing list