forked from OSchip/llvm-project
Add explicit capture for `this` pointer in attempt to fix gcc5 build (NFC)
This commit is contained in:
parent
d07ff99591
commit
fdfe26ddbe
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue