diff --git a/mlir/include/mlir-c/Support.h b/mlir/include/mlir-c/Support.h --- a/mlir/include/mlir-c/Support.h +++ b/mlir/include/mlir-c/Support.h @@ -65,12 +65,12 @@ typedef struct MlirLogicalResult MlirLogicalResult; /** Checks if the given logical result represents a success. */ -inline int mlirLogicalResultIsSuccess(MlirLogicalResult res) { +inline static int mlirLogicalResultIsSuccess(MlirLogicalResult res) { return res.value != 0; } /** Checks if the given logical result represents a failure. */ -inline int mlirLogicalResultIsFailure(MlirLogicalResult res) { +inline static int mlirLogicalResultIsFailure(MlirLogicalResult res) { return res.value == 0; }