From: Jacques Pienaar Date: Tue, 26 Oct 2021 04:11:50 +0000 (-0700) Subject: [mlir-c] Avoid compiler warning X-Git-Tag: upstream/15.0.7~27663 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b288d08fbb850fa0d5600c7aaf5e9943521cb35f;p=platform%2Fupstream%2Fllvm.git [mlir-c] Avoid compiler warning Setting visibility & static leads to warning about attribute being ignored. Differential Revision: https://reviews.llvm.org/D112507 --- diff --git a/mlir/include/mlir-c/IR.h b/mlir/include/mlir-c/IR.h index 2fec0be..456aa93 100644 --- a/mlir/include/mlir-c/IR.h +++ b/mlir/include/mlir-c/IR.h @@ -713,9 +713,7 @@ MLIR_CAPI_EXPORTED MlirStringRef mlirIdentifierStr(MlirIdentifier ident); //===----------------------------------------------------------------------===// /// Checks whether a type id is null. -MLIR_CAPI_EXPORTED static inline bool mlirTypeIDIsNull(MlirTypeID typeID) { - return !typeID.ptr; -} +static inline bool mlirTypeIDIsNull(MlirTypeID typeID) { return !typeID.ptr; } /// Checks if two type ids are equal. MLIR_CAPI_EXPORTED bool mlirTypeIDEqual(MlirTypeID typeID1, MlirTypeID typeID2);