[Mlir-commits] [mlir] ceb5dc5 - [PDLL] Attempt to fix the gcc5 build by adding this-> to auto lambda

River Riddle llvmlistbot at llvm.org
Thu Feb 10 17:07:03 PST 2022


Author: River Riddle
Date: 2022-02-10T16:59:03-08:00
New Revision: ceb5dc55c2e395c085cd9d16c4152c5a1923d7e2

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

LOG: [PDLL] Attempt to fix the gcc5 build by adding this-> to auto lambda

Added: 
    

Modified: 
    mlir/lib/Tools/PDLL/Parser/Parser.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Tools/PDLL/Parser/Parser.cpp b/mlir/lib/Tools/PDLL/Parser/Parser.cpp
index 5ed2481027800..7339757a5a9ea 100644
--- a/mlir/lib/Tools/PDLL/Parser/Parser.cpp
+++ b/mlir/lib/Tools/PDLL/Parser/Parser.cpp
@@ -756,7 +756,9 @@ Parser::parseUserConstraintDecl(bool isInline) {
   // Constraints and rewrites have very similar formats, dispatch to a shared
   // interface for parsing.
   return parseUserConstraintOrRewriteDecl<ast::UserConstraintDecl>(
-      [&](auto &&...args) { return parseUserPDLLConstraintDecl(args...); },
+      [&](auto &&...args) {
+        return this->parseUserPDLLConstraintDecl(args...);
+      },
       ParserContext::Constraint, "constraint", isInline);
 }
 
@@ -822,7 +824,7 @@ FailureOr<ast::UserRewriteDecl *> Parser::parseUserRewriteDecl(bool isInline) {
   // Constraints and rewrites have very similar formats, dispatch to a shared
   // interface for parsing.
   return parseUserConstraintOrRewriteDecl<ast::UserRewriteDecl>(
-      [&](auto &&...args) { return parseUserPDLLRewriteDecl(args...); },
+      [&](auto &&...args) { return this->parseUserPDLLRewriteDecl(args...); },
       ParserContext::Rewrite, "rewrite", isInline);
 }
 


        


More information about the Mlir-commits mailing list