[clang] [Clang][Sema] Tweak tryCaptureVariable for unevaluated lambdas (PR #93206)

via cfe-commits cfe-commits at lists.llvm.org
Thu May 30 00:54:12 PDT 2024


================
@@ -1036,6 +1036,7 @@ void Sema::ActOnLambdaExpressionAfterIntroducer(LambdaIntroducer &Intro,
   // be dependent, because there are template parameters in scope.
   CXXRecordDecl::LambdaDependencyKind LambdaDependencyKind =
       CXXRecordDecl::LDK_Unknown;
+
----------------
cor3ntin wrote:

This looks like dead code from a past refactor, we should remove it
(template parameters are set later, in  `ActOnLambdaExplicitTemplateParameterList`

https://github.com/llvm/llvm-project/pull/93206


More information about the cfe-commits mailing list