OSDN Git Service
(root)
/
android-x86
/
external-llvm-project.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4086072
)
[mlir][CAPI] Fix inline function declaration
author
Vladislav Vinogradov
<vlad.vinogradov@intel.com>
Tue, 12 Jan 2021 16:02:56 +0000
(17:02 +0100)
committer
Alex Zinenko
<zinenko@google.com>
Tue, 12 Jan 2021 16:05:02 +0000
(17:05 +0100)
Add `static` keyword, otherwise build fail with linker error for some cases.
Reviewed By: ftynse
Differential Revision: https://reviews.llvm.org/D94496
mlir/include/mlir-c/AffineExpr.h
patch
|
blob
|
history
diff --git
a/mlir/include/mlir-c/AffineExpr.h
b/mlir/include/mlir-c/AffineExpr.h
index
ec44568
..
d5c6e7b
100644
(file)
--- a/
mlir/include/mlir-c/AffineExpr.h
+++ b/
mlir/include/mlir-c/AffineExpr.h
@@
-50,7
+50,7
@@
MLIR_CAPI_EXPORTED bool mlirAffineExprEqual(MlirAffineExpr lhs,
/// Returns `true` if the given affine expression is a null expression. Note
/// constant zero is not a null expression.
-inline bool mlirAffineExprIsNull(MlirAffineExpr affineExpr) {
+inline
static
bool mlirAffineExprIsNull(MlirAffineExpr affineExpr) {
return affineExpr.ptr == NULL;
}