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:
b3aeb13
)
[mlir] Fix compile error.
author
Adrian Kuegel
<akuegel@google.com>
Mon, 10 May 2021 05:48:45 +0000
(07:48 +0200)
committer
Adrian Kuegel
<akuegel@google.com>
Mon, 10 May 2021 05:48:45 +0000
(07:48 +0200)
Inside a templated function, other class members need to be called with
this->.
Otherwise we get: explicit qualification required to use member
'setDebugName' from dependent base class.
mlir/include/mlir/IR/PatternMatch.h
patch
|
blob
|
history
diff --git
a/mlir/include/mlir/IR/PatternMatch.h
b/mlir/include/mlir/IR/PatternMatch.h
index
b2161cf
..
944b6e8
100644
(file)
--- a/
mlir/include/mlir/IR/PatternMatch.h
+++ b/
mlir/include/mlir/IR/PatternMatch.h
@@
-971,7
+971,7
@@
public:
FnPattern(LogicalResult (*implFn)(OpType, PatternRewriter &rewriter),
MLIRContext *context)
: OpRewritePattern<OpType>(context), implFn(implFn) {
- setDebugName(llvm::getTypeName<FnPattern>());
+
this->
setDebugName(llvm::getTypeName<FnPattern>());
}
LogicalResult matchAndRewrite(OpType op,