================
@@ -423,8 +423,8 @@ static void instantiateOMPDeclareVariantAttr(
   auto *FD = cast<FunctionDecl>(New);
   auto *ThisContext = dyn_cast_or_null<CXXRecordDecl>(FD->getDeclContext());
 
-  auto &&SubstExpr = [FD, ThisContext, &S, &TemplateArgs](Expr *E) {
-    if (auto *DRE = dyn_cast<DeclRefExpr>(E->IgnoreParenImpCasts()))
+  auto &&SubstExpr = [FD, ThisContext, &S, &TemplateArgs, New](Expr *E) {
----------------
shiltian wrote:

Where is `New` used inside of the lambda?

https://github.com/llvm/llvm-project/pull/131838
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to