[mlir] Fix compile error.
authorAdrian Kuegel <akuegel@google.com>
Mon, 10 May 2021 05:48:45 +0000 (07:48 +0200)
committerAdrian 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

index b2161cf..944b6e8 100644 (file)
@@ -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,