[clang] [OpenMP 6.0] Parse/Sema support for reduction over private variable with reduction clause. (PR #129938)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 19 05:40:54 PDT 2025


================
@@ -8020,6 +8020,11 @@ void OMPClauseWriter::VisitOMPReductionClause(OMPReductionClause *C) {
     for (auto *E : C->copy_array_elems())
       Record.AddStmt(E);
   }
+  auto PrivateFlags = C->private_var_reduction_flags();
+  Record.push_back(std::distance(PrivateFlags.begin(), PrivateFlags.end()));
+  // Record.push_back(PrivateFlags.size());
----------------
alexey-bataev wrote:

Remove commented code

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


More information about the cfe-commits mailing list