[clang] [OpenMP] Support capturing structured bindings in OpenMP regions. (PR #190832)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 26 09:11:47 PDT 2026


================
@@ -19789,10 +19883,11 @@ OMPClause *SemaOpenMP::ActOnOpenMPFirstprivateClause(ArrayRef<Expr *> VarList,
         SemaRef, VDPrivate, RefExpr->getType().getUnqualifiedType(),
         RefExpr->getExprLoc());
     DeclRefExpr *Ref = nullptr;
+    bool IsBindingDecl = isa<BindingDecl>(D);
----------------
alexey-bataev wrote:

```suggestion
    if (checkDecompositionDSAConflict(SemaRef, DSAStack, D, ELoc,
                                      OMPC_firstprivate))
      continue;
    bool IsBindingDecl = isa<BindingDecl>(D);
```

https://github.com/llvm/llvm-project/pull/190832


More information about the cfe-commits mailing list