[clang] [Clang][Sema] Tweak tryCaptureVariable for unevaluated lambdas (PR #93206)
Younan Zhang via cfe-commits
cfe-commits at lists.llvm.org
Thu May 23 08:37:31 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;
+
----------------
zyn0217 wrote:
Adding a blank line so I can comment here: I found it interesting that we asserted in line 1033 that `LSI->NumExplicitTemplateParams` is always 0... so the lines in the first branch of the if below are useless?
@cor3ntin
https://github.com/llvm/llvm-project/pull/93206
More information about the cfe-commits
mailing list