[mlir-c] Avoid compiler warning
authorJacques Pienaar <jpienaar@google.com>
Tue, 26 Oct 2021 04:11:50 +0000 (21:11 -0700)
committerJacques Pienaar <jpienaar@google.com>
Tue, 26 Oct 2021 04:11:51 +0000 (21:11 -0700)
Setting visibility & static leads to warning about attribute being
ignored.

Differential Revision: https://reviews.llvm.org/D112507

mlir/include/mlir-c/IR.h

index 2fec0be..456aa93 100644 (file)
@@ -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);