diff --git a/mlir/lib/Dialect/Linalg/Utils/Utils.cpp b/mlir/lib/Dialect/Linalg/Utils/Utils.cpp --- a/mlir/lib/Dialect/Linalg/Utils/Utils.cpp +++ b/mlir/lib/Dialect/Linalg/Utils/Utils.cpp @@ -603,10 +603,14 @@ } Operation *sliceOp = shapedType.isa() - ? builder.create( - loc, valueToTile, offsets, sizes, strides) - : builder.create( - loc, valueToTile, offsets, sizes, strides); + ? builder + .create( + loc, valueToTile, offsets, sizes, strides) + .getOperation() + : builder + .create( + loc, valueToTile, offsets, sizes, strides) + .getOperation(); return sliceOp->getResult(0); }