Skip to content

Commit ceb5dc5

Browse files
committed
[PDLL] Attempt to fix the gcc5 build by adding this-> to auto lambda
1 parent 5ba1150 commit ceb5dc5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,9 @@ Parser::parseUserConstraintDecl(bool isInline) {
756756
// Constraints and rewrites have very similar formats, dispatch to a shared
757757
// interface for parsing.
758758
return parseUserConstraintOrRewriteDecl<ast::UserConstraintDecl>(
759-
[&](auto &&...args) { return parseUserPDLLConstraintDecl(args...); },
759+
[&](auto &&...args) {
760+
return this->parseUserPDLLConstraintDecl(args...);
761+
},
760762
ParserContext::Constraint, "constraint", isInline);
761763
}
762764

@@ -822,7 +824,7 @@ FailureOr<ast::UserRewriteDecl *> Parser::parseUserRewriteDecl(bool isInline) {
822824
// Constraints and rewrites have very similar formats, dispatch to a shared
823825
// interface for parsing.
824826
return parseUserConstraintOrRewriteDecl<ast::UserRewriteDecl>(
825-
[&](auto &&...args) { return parseUserPDLLRewriteDecl(args...); },
827+
[&](auto &&...args) { return this->parseUserPDLLRewriteDecl(args...); },
826828
ParserContext::Rewrite, "rewrite", isInline);
827829
}
828830

0 commit comments

Comments
 (0)