From 60e2c5b03b590fbb1477d3d7170d5bd434b39ce9 Mon Sep 17 00:00:00 2001 From: Stella Laurenzo Date: Thu, 5 Nov 2020 21:47:55 -0800 Subject: [PATCH] [mlir][CAPI] Add missing 'static' to inline C function. * Asked to submit separately from https://reviews.llvm.org/D90824 --- mlir/include/mlir-c/Support.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mlir/include/mlir-c/Support.h b/mlir/include/mlir-c/Support.h index 4bd5000..6632353 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; -- 2.7.4