diff --git a/mlir/include/mlir-c/IR.h b/mlir/include/mlir-c/IR.h --- a/mlir/include/mlir-c/IR.h +++ b/mlir/include/mlir-c/IR.h @@ -713,7 +713,7 @@ //===----------------------------------------------------------------------===// /// Checks whether a type id is null. -MLIR_CAPI_EXPORTED static inline bool mlirTypeIDIsNull(MlirTypeID typeID) { +MLIR_CAPI_EXPORTED inline bool mlirTypeIDIsNull(MlirTypeID typeID) { return !typeID.ptr; }