File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -15522,12 +15522,12 @@ LambdaScopeInfo *Sema::RebuildLambdaScopeInfo(CXXMethodDecl *CallOperator) {
1552215522 // When this function is called in situation where the context of the call
1552315523 // operator is not entered, we set AfterParameterList to false, so that
1552415524 // `tryCaptureVariable` finds explicit captures in the appropriate context.
15525- //
1552615525 // There is also at least a situation as in FinishTemplateArgumentDeduction(),
1552715526 // where we would set the CurContext to the lambda operator before
1552815527 // substituting into it. In this case the flag needs to be true such that
1552915528 // tryCaptureVariable can correctly handle potential captures thereof.
1553015529 LSI->AfterParameterList = CurContext == CallOperator;
15530+
1553115531 // GLTemplateParameterList is necessary for getCurGenericLambda() which is
1553215532 // used at the point of dealing with potential captures.
1553315533 //
You can’t perform that action at this time.
0 commit comments