[Mlir-commits] [mlir] 3ded927 - [mlir] Add missing const * updates in StandardAttributes

Tres Popp llvmlistbot at llvm.org
Thu Nov 19 13:56:39 PST 2020


Author: Tres Popp
Date: 2020-11-19T22:56:30+01:00
New Revision: 3ded927cf80ac519f9f9c4664fef08787f7c537d

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

LOG: [mlir] Add missing const * updates in StandardAttributes

This add missing updates to the header file that caused linking issues.
Original change at https://reviews.llvm.org/D91740

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

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir-c/StandardAttributes.h b/mlir/include/mlir-c/StandardAttributes.h
index be858bd19433..f86b5b73265c 100644
--- a/mlir/include/mlir-c/StandardAttributes.h
+++ b/mlir/include/mlir-c/StandardAttributes.h
@@ -309,7 +309,7 @@ MLIR_CAPI_EXPORTED int mlirAttributeIsADenseFPElements(MlirAttribute attr);
 /** Creates a dense elements attribute with the given Shaped type and elements
  * in the same context as the type. */
 MLIR_CAPI_EXPORTED MlirAttribute mlirDenseElementsAttrGet(
-    MlirType shapedType, intptr_t numElements, MlirAttribute *elements);
+    MlirType shapedType, intptr_t numElements, MlirAttribute const *elements);
 
 /** Creates a dense elements attribute with the given Shaped type containing a
  * single replicated element (splat). */
@@ -353,7 +353,7 @@ MLIR_CAPI_EXPORTED MlirAttribute mlirDenseElementsAttrDoubleGet(
  * provided as a separate argument co-indexed with the strs argument. */
 MLIR_CAPI_EXPORTED MlirAttribute
 mlirDenseElementsAttrStringGet(MlirType shapedType, intptr_t numElements,
-                               intptr_t *strLengths, const char **strs);
+                               intptr_t const *strLengths, const char **strs);
 /** Creates a dense elements attribute that has the same data as the given dense
  * elements attribute and a 
diff erent shaped type. The new type must have the
  * same total number of elements. */


        


More information about the Mlir-commits mailing list