Skip to content

Commit 4fa01f7

Browse files
Vladislav Vinogradovftynse
authored andcommitted
[mlir][CAPI] Fix inline function declaration
Add `static` keyword, otherwise build fail with linker error for some cases. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D94496
1 parent 4086072 commit 4fa01f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/include/mlir-c/AffineExpr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ MLIR_CAPI_EXPORTED bool mlirAffineExprEqual(MlirAffineExpr lhs,
5050

5151
/// Returns `true` if the given affine expression is a null expression. Note
5252
/// constant zero is not a null expression.
53-
inline bool mlirAffineExprIsNull(MlirAffineExpr affineExpr) {
53+
inline static bool mlirAffineExprIsNull(MlirAffineExpr affineExpr) {
5454
return affineExpr.ptr == NULL;
5555
}
5656

0 commit comments

Comments
 (0)