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

Zahira Ammarguellat via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 10 06:35:46 PDT 2026


================
@@ -23630,6 +24004,14 @@ static void checkMappableExpressionList(
 
     Expr *SimpleExpr = RE->IgnoreParenCasts();
 
+    // Skip entries with unnamed decls (can happen with transformed expressions)
+    if (const auto *DRE = dyn_cast<DeclRefExpr>(SimpleExpr)) {
+      if (const auto *D = dyn_cast<NamedDecl>(DRE->getDecl())) {
+        if (!D->getDeclName())
+          continue;
----------------
zahiraam wrote:

Removed.

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


More information about the cfe-commits mailing list