[mlir][CAPI] Add missing 'static' to inline C function.
authorStella Laurenzo <stellaraccident@gmail.com>
Fri, 6 Nov 2020 05:47:55 +0000 (21:47 -0800)
committerStella Laurenzo <stellaraccident@gmail.com>
Fri, 6 Nov 2020 05:47:55 +0000 (21:47 -0800)
* Asked to submit separately from https://reviews.llvm.org/D90824

mlir/include/mlir-c/Support.h

index 4bd5000..6632353 100644 (file)
@@ -38,7 +38,8 @@ typedef struct MlirStringRef MlirStringRef;
 /** Constructs a string reference from the pointer and length. The pointer need
  * not reference to a null-terminated string.
  */
-inline MlirStringRef mlirStringRefCreate(const char *str, size_t length) {
+inline static MlirStringRef mlirStringRefCreate(const char *str,
+                                                size_t length) {
   MlirStringRef result;
   result.data = str;
   result.length = length;