================
@@ -2170,6 +2172,12 @@ ExprResult Sema::BuildLambdaExpr(SourceLocation
StartLoc, SourceLocation EndLoc,
PopExpressionEvaluationContext();
+ sema::AnalysisBasedWarnings::Policy WP =
+ AnalysisWarnings.getPolicyInEffectAt(EndLoc);
+ // We cannot release LSI until we finish computing captures, which
+ // requires the scope to be popped.
+ PoppedFunctionScopePtr _ = PopFunctionScopeInfo(&WP, LSI->CallOperator);
----------------
zyn0217 wrote:
Thanks, I reverted in https://github.com/llvm/llvm-project/pull/154382 :(
https://github.com/llvm/llvm-project/pull/154106
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits