[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


================
@@ -3764,6 +3764,23 @@ void DecompositionDecl::printName(llvm::raw_ostream &OS,
   OS << ']';
 }
 
+const VarDecl *DecompositionDecl::getOriginalVar() const {
----------------
alexey-bataev wrote:

codegen/Sema still silently falls back when init is a bare CallExpr or deeper cast chain. Either extend getOriginalVar() or centralize init-shape checking so all paths share one predicate.

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


More information about the cfe-commits mailing list