Author: Vladislav Vinogradov Date: 2021-01-12T17:05:02+01:00 New Revision: 4fa01f72de6cc48a44afe057c04803711160c92d
URL: https://github.com/llvm/llvm-project/commit/4fa01f72de6cc48a44afe057c04803711160c92d DIFF: https://github.com/llvm/llvm-project/commit/4fa01f72de6cc48a44afe057c04803711160c92d.diff LOG: [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 Added: Modified: mlir/include/mlir-c/AffineExpr.h Removed: ################################################################################ diff --git a/mlir/include/mlir-c/AffineExpr.h b/mlir/include/mlir-c/AffineExpr.h index ec445682c011..d5c6e7b9f29e 100644 --- a/mlir/include/mlir-c/AffineExpr.h +++ b/mlir/include/mlir-c/AffineExpr.h @@ -50,7 +50,7 @@ MLIR_CAPI_EXPORTED bool mlirAffineExprEqual(MlirAffineExpr lhs, /// Returns `true` if the given affine expression is a null expression. Note /// constant zero is not a null expression. -inline bool mlirAffineExprIsNull(MlirAffineExpr affineExpr) { +inline static bool mlirAffineExprIsNull(MlirAffineExpr affineExpr) { return affineExpr.ptr == NULL; } _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits