[Mlir-commits] [mlir] b288d08 - [mlir-c] Avoid compiler warning

Jacques Pienaar llvmlistbot at llvm.org
Mon Oct 25 21:13:53 PDT 2021


Author: Jacques Pienaar
Date: 2021-10-25T21:11:51-07:00
New Revision: b288d08fbb850fa0d5600c7aaf5e9943521cb35f

URL: https://github.com/llvm/llvm-project/commit/b288d08fbb850fa0d5600c7aaf5e9943521cb35f
DIFF: https://github.com/llvm/llvm-project/commit/b288d08fbb850fa0d5600c7aaf5e9943521cb35f.diff

LOG: [mlir-c] Avoid compiler warning

Setting visibility & static leads to warning about attribute being
ignored.

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

Added: 
    

Modified: 
    mlir/include/mlir-c/IR.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir-c/IR.h b/mlir/include/mlir-c/IR.h
index 2fec0be4defb2..456aa93b25dc7 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);


        


More information about the Mlir-commits mailing list