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();