[clang] [OpenMP] Support capturing structured bindings in OpenMP regions. (PR #190832)
Zahira Ammarguellat via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 5 06:57:30 PDT 2026
================
@@ -1970,9 +1970,14 @@ ExprResult Sema::BuildCaptureInit(const Capture &Cap,
} else {
assert(Cap.isVariableCapture() && "unknown kind of capture");
ValueDecl *Var = Cap.getVariable();
+ // For OpenMP structured bindings, capture the decomposed decl, not the
+ // binding.
+ auto *BD = dyn_cast<BindingDecl>(Var);
----------------
zahiraam wrote:
See comments above.
https://github.com/llvm/llvm-project/pull/190832
More information about the cfe-commits
mailing list