Skip to content

Commit

Permalink
[mlir-c] Avoid compiler warning
Browse files Browse the repository at this point in the history
Setting visibility & static leads to warning about attribute being
ignored.

Differential Revision: https://reviews.llvm.org/D112507
  • Loading branch information
jpienaar committed Oct 26, 2021
1 parent de44af4 commit b288d08
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mlir/include/mlir-c/IR.h
Expand Up @@ -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);
Expand Down

0 comments on commit b288d08

Please sign in to comment.