Skip to content

Commit 60e2c5b

Browse files
[mlir][CAPI] Add missing 'static' to inline C function.
* Asked to submit separately from https://reviews.llvm.org/D90824
1 parent 4931158 commit 60e2c5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mlir/include/mlir-c/Support.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ typedef struct MlirStringRef MlirStringRef;
3838
/** Constructs a string reference from the pointer and length. The pointer need
3939
* not reference to a null-terminated string.
4040
*/
41-
inline MlirStringRef mlirStringRefCreate(const char *str, size_t length) {
41+
inline static MlirStringRef mlirStringRefCreate(const char *str,
42+
size_t length) {
4243
MlirStringRef result;
4344
result.data = str;
4445
result.length = length;

0 commit comments

Comments
 (0)