Skip to content

Commit 69a0742

Browse files
authored
[mlir] Fix unqualified APInt in LoopLikeOpInterface tablegen (#159561)
In the recent change adding `getStaticTripCount` there is an omitted namespace on `APInt` which means the build fails for projects using this interface outside of `llvm` namespace (or `using llvm::APInt`).
1 parent 6acfc02 commit 69a0742

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/include/mlir/Interfaces/LoopLikeInterface.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def LoopLikeOpInterface : OpInterface<"LoopLikeOpInterface"> {
236236
InterfaceMethod<[{
237237
Compute the static trip count if possible.
238238
}],
239-
/*retTy=*/"::std::optional<APInt>",
239+
/*retTy=*/"::std::optional<::llvm::APInt>",
240240
/*methodName=*/"getStaticTripCount",
241241
/*args=*/(ins),
242242
/*methodBody=*/"",

0 commit comments

Comments
 (0)