projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4931158
)
[mlir][CAPI] Add missing 'static' to inline C function.
author
Stella Laurenzo
<stellaraccident@gmail.com>
Fri, 6 Nov 2020 05:47:55 +0000
(21:47 -0800)
committer
Stella Laurenzo
<stellaraccident@gmail.com>
Fri, 6 Nov 2020 05:47:55 +0000
(21:47 -0800)
* Asked to submit separately from https://reviews.llvm.org/D90824
mlir/include/mlir-c/Support.h
patch
|
blob
|
history
diff --git
a/mlir/include/mlir-c/Support.h
b/mlir/include/mlir-c/Support.h
index
4bd5000
..
6632353
100644
(file)
--- 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;