diff --git a/mlir/include/mlir/Interfaces/LoopLikeInterface.td b/mlir/include/mlir/Interfaces/LoopLikeInterface.td index cfd15a7746e19..e09b8672f2d08 100644 --- a/mlir/include/mlir/Interfaces/LoopLikeInterface.td +++ b/mlir/include/mlir/Interfaces/LoopLikeInterface.td @@ -236,7 +236,7 @@ def LoopLikeOpInterface : OpInterface<"LoopLikeOpInterface"> { InterfaceMethod<[{ Compute the static trip count if possible. }], - /*retTy=*/"::std::optional", + /*retTy=*/"::std::optional<::llvm::APInt>", /*methodName=*/"getStaticTripCount", /*args=*/(ins), /*methodBody=*/"",