Skip to content

Commit 1370880

Browse files
committed
Address feedback
1 parent d7f7ab7 commit 1370880

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
//

0 commit comments

Comments
 (0)