From 3038d0d7bcc561feef04930c6e467ab14f2a45a2 Mon Sep 17 00:00:00 2001 From: Kai Sasaki Date: Tue, 23 Jan 2024 18:49:14 +0900 Subject: [PATCH] Update the rewriter method name https://github.com/llvm/llvm-project/pull/78260 --- lib/Hello/LowerToAffine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Hello/LowerToAffine.cpp b/lib/Hello/LowerToAffine.cpp index b73a061049..abc7456382 100644 --- a/lib/Hello/LowerToAffine.cpp +++ b/lib/Hello/LowerToAffine.cpp @@ -135,7 +135,7 @@ class PrintOpLowering : public mlir::OpConversionPattern { mlir::ConversionPatternRewriter &rewriter) const final { // We don't lower "hello.print" in this pass, but we need to update its // operands. - rewriter.updateRootInPlace(op, + rewriter.modifyOpInPlace(op, [&] { op->setOperands(adaptor.getOperands()); }); return mlir::success(); }