[clang] [llvm] [Clang][OpenMP] Support for dispatch construct (Sema & Codegen) support (PR #131838)
Shilei Tian via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 23 11:48:04 PDT 2025
================
@@ -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
More information about the cfe-commits
mailing list