================
@@ -1383,6 +1383,9 @@ ExprResult Parser::ParseLambdaExpressionAfterIntroducer(
addStaticToLambdaDeclSpecifier(*this, StaticLoc, DS);
addConstexprToLambdaDeclSpecifier(*this, ConstexprLoc, DS);
addConstevalToLambdaDeclSpecifier(*this, ConstevalLoc, DS);
+ if (clang::sema::LambdaScopeInfo *LSI = Actions.getCurLambda()) {
+ LSI->Mutable = MutableLoc.isValid();
+ }
----------------
SamrudhNelli wrote:
@cor3ntin You were correct, moving `ActOnLambdaClosureQualifiers` before
`ParseTrailingReturnType` actually works.
Thanks for your insight. Let me know if any other changes are to be made.
https://github.com/llvm/llvm-project/pull/180690
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits