forked from OSchip/llvm-project
[mlir][CAPI] Add missing 'static' to inline C function.
* Asked to submit separately from https://reviews.llvm.org/D90824
This commit is contained in:
parent
4931158d27
commit
60e2c5b03b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue