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

* Asked to submit separately from https://reviews.llvm.org/D90824
This commit is contained in:
Stella Laurenzo 2020-11-05 21:47:55 -08:00
parent 4931158d27
commit 60e2c5b03b
1 changed files with 2 additions and 1 deletions

View 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;