================ @@ -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) { ---------------- SunilKuravinakop wrote:
Sorry, this was not deleted properly. I was attempting to include another change but, I subsequently rolled it back for this patch. Thanks for pointing it out. 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