Skip to content

Commit

Permalink
Update the rewriter method name
Browse files Browse the repository at this point in the history
  • Loading branch information
Lewuathe committed Jan 23, 2024
1 parent efa71cf commit 3038d0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Hello/LowerToAffine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class PrintOpLowering : public mlir::OpConversionPattern<hello::PrintOp> {
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();
}
Expand Down

0 comments on commit 3038d0d

Please sign in to comment.