[Mlir-commits] [mlir] fdfe26d - Add explicit capture for `this` pointer in attempt to fix gcc5 build (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Sun Feb 27 13:42:11 PST 2022
Author: Mehdi Amini
Date: 2022-02-27T21:41:23Z
New Revision: fdfe26ddbeb1a5eb6106a6a27d6f8240deca543f
URL: https://github.com/llvm/llvm-project/commit/fdfe26ddbeb1a5eb6106a6a27d6f8240deca543f
DIFF: https://github.com/llvm/llvm-project/commit/fdfe26ddbeb1a5eb6106a6a27d6f8240deca543f.diff
LOG: Add explicit capture for `this` pointer in attempt to fix gcc5 build (NFC)
Added:
Modified:
mlir/lib/Tools/PDLL/CodeGen/MLIRGen.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Tools/PDLL/CodeGen/MLIRGen.cpp b/mlir/lib/Tools/PDLL/CodeGen/MLIRGen.cpp
index 17afb3bcc47ed..16a5afa4ea487 100644
--- a/mlir/lib/Tools/PDLL/CodeGen/MLIRGen.cpp
+++ b/mlir/lib/Tools/PDLL/CodeGen/MLIRGen.cpp
@@ -310,7 +310,7 @@ Value CodeGen::genNonInitializerVar(const ast::VariableDecl *varDecl,
Value typeValue =
TypeSwitch<const ast::Node *, Value>(constraint.constraint)
.Case<ast::AttrConstraintDecl, ast::ValueConstraintDecl,
- ast::ValueRangeConstraintDecl>([&](auto *cst) -> Value {
+ ast::ValueRangeConstraintDecl>([&, this](auto *cst) -> Value {
if (auto *typeConstraintExpr = cst->getTypeExpr())
return genSingleExpr(typeConstraintExpr);
return Value();
More information about the Mlir-commits
mailing list