[clang] [OpenMP] Support capturing structured bindings in OpenMP regions. (PR #190832)
Alexey Bataev via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 16 06:14:42 PDT 2026
================
@@ -21605,13 +21618,16 @@ static bool FinishOpenMPLinearClause(OMPLinearClause &Clause, DeclRefExpr *IV,
// Build privatized reference to the current linear var.
auto *DE = cast<DeclRefExpr>(SimpleRefExpr);
Expr *CapturedRef;
- if (LinKind == OMPC_LINEAR_uval)
+ if (dyn_cast<BindingDecl>(DE->getDecl())) {
----------------
alexey-bataev wrote:
```suggestion
if (isa<BindingDecl>(DE->getDecl())) {
```
https://github.com/llvm/llvm-project/pull/190832
More information about the cfe-commits
mailing list