diff --git a/mlir/examples/toy/Ch6/mlir/LowerToLLVM.cpp b/mlir/examples/toy/Ch6/mlir/LowerToLLVM.cpp index f05f1c2dc338..67b82f91b1db 100644 --- a/mlir/examples/toy/Ch6/mlir/LowerToLLVM.cpp +++ b/mlir/examples/toy/Ch6/mlir/LowerToLLVM.cpp @@ -61,7 +61,7 @@ public: LogicalResult matchAndRewrite(Operation *op, ArrayRef operands, ConversionPatternRewriter &rewriter) const override { - auto context = rewriter.getContext(); + auto *context = rewriter.getContext(); auto memRefType = llvm::cast((*op->operand_type_begin())); auto memRefShape = memRefType.getShape(); auto loc = op->getLoc();