================ @@ -1246,7 +1246,12 @@ void Sema::ActOnLambdaExpressionAfterIntroducer(LambdaIntroducer &Intro, if (auto *BD = R.getAsSingle<BindingDecl>()) Var = BD; - else + else if (auto *FD = R.getAsSingle<FieldDecl>()) { + Var = R.getAsSingle<VarDecl>(); ---------------- Sirraide wrote:
Don’t think there is a reason to do this since we’ll be `continue`’ing below anyway. https://github.com/llvm/llvm-project/pull/94865 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits