From dc7e63f74c7f6cf58428cf67d1557d117854e1e5 Mon Sep 17 00:00:00 2001 From: Christian Sigg Date: Thu, 17 Dec 2020 06:28:06 -0800 Subject: [PATCH] Use mlir::OpState::operator->() to get to methods of mlir::Operation. This is a preparation step to remove those methods from OpState. PiperOrigin-RevId: 348010582 --- lib/Dialect/mhlo/transforms/hlo_legalize_to_lhlo.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Dialect/mhlo/transforms/hlo_legalize_to_lhlo.cc b/lib/Dialect/mhlo/transforms/hlo_legalize_to_lhlo.cc index b9d612d..f61c7eb 100644 --- a/lib/Dialect/mhlo/transforms/hlo_legalize_to_lhlo.cc +++ b/lib/Dialect/mhlo/transforms/hlo_legalize_to_lhlo.cc @@ -185,8 +185,8 @@ struct HloToLhloCustomCallOpConverter // for args and outputs. const int32_t segments[2] = {static_cast(operands.size()), static_cast(op->getNumResults())}; - lhloOp.setAttr(lhloOp.getOperandSegmentSizeAttr(), - rewriter.getI32VectorAttr(segments)); + lhloOp->setAttr(lhloOp.getOperandSegmentSizeAttr(), + rewriter.getI32VectorAttr(segments)); rewriter.replaceOp(op, ArrayRef(buffer_args).slice(operands.size())); return success();