Skip to content

Commit

Permalink
[mlir] Fix compile error.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
akuegel committed May 10, 2021
1 parent b3aeb13 commit 9ba661f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlir/include/mlir/IR/PatternMatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ class RewritePatternSet {
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,
Expand Down

0 comments on commit 9ba661f

Please sign in to comment.