[Mlir-commits] [mlir] 9ba661f - [mlir] Fix compile error.

Adrian Kuegel llvmlistbot at llvm.org
Sun May 9 22:51:20 PDT 2021


Author: Adrian Kuegel
Date: 2021-05-10T07:48:45+02:00
New Revision: 9ba661f91276dd8cc728f9b2e82905b78c0119b4

URL: https://github.com/llvm/llvm-project/commit/9ba661f91276dd8cc728f9b2e82905b78c0119b4
DIFF: https://github.com/llvm/llvm-project/commit/9ba661f91276dd8cc728f9b2e82905b78c0119b4.diff

LOG: [mlir] Fix compile error.

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.

Added: 
    

Modified: 
    mlir/include/mlir/IR/PatternMatch.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/IR/PatternMatch.h b/mlir/include/mlir/IR/PatternMatch.h
index b2161cfe412d..944b6e8a1d1a 100644
--- a/mlir/include/mlir/IR/PatternMatch.h
+++ b/mlir/include/mlir/IR/PatternMatch.h
@@ -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,


        


More information about the Mlir-commits mailing list