================
@@ -4028,6 +4221,12 @@ class DSAAttrChecker final : public
StmtVisitor<DSAAttrChecker, void> {
if (!Stack->isImplicitDefaultFirstprivateFD(VD))
return;
VD = VD->getCanonicalDecl();
+ // Skip BindingDecls and DecompositionDecls - they should be handled
+ // through explicit mapping of the original variable or as member
+ // expressions. When bindings are captured, the original variable
+ // is what needs to be mapped, not the decomposition itself.
+ if (isa<BindingDecl>(VD) || isa<DecompositionDecl>(VD))
----------------
alexey-bataev wrote:
```suggestion
if (isa<DecompositionDecl>(VD))
```
BindingDecl is not derived from VarDecl
https://github.com/llvm/llvm-project/pull/190832
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits