[Mlir-commits] [mlir] 60e2c5b - [mlir][CAPI] Add missing 'static' to inline C function.

Stella Laurenzo llvmlistbot at llvm.org
Thu Nov 5 21:49:03 PST 2020


Author: Stella Laurenzo
Date: 2020-11-05T21:47:55-08:00
New Revision: 60e2c5b03b590fbb1477d3d7170d5bd434b39ce9

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

LOG: [mlir][CAPI] Add missing 'static' to inline C function.

* Asked to submit separately from https://reviews.llvm.org/D90824

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir-c/Support.h b/mlir/include/mlir-c/Support.h
index 4bd500016390f..66323539c6bc8 100644
--- a/mlir/include/mlir-c/Support.h
+++ b/mlir/include/mlir-c/Support.h
@@ -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;


        


More information about the Mlir-commits mailing list