[clang] [flang] [llvm] [openmp] [OpenMP][Offload] Add offload runtime support for dyn_groupprivate clause (PR #152831)

Johannes Doerfert via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 11 14:50:00 PDT 2026


================
@@ -472,8 +475,14 @@ GenericKernelTy::getKernelLaunchEnvironment(
     LocalKLE.ReductionBuffer = *AllocOrErr;
     // Remember to free the memory later.
     AsyncInfoWrapper.freeAllocationAfterSynchronization(*AllocOrErr);
+  } else {
+    LocalKLE.ReductionBuffer = nullptr;
   }
----------------
jdoerfert wrote:

Swap the cases, short one first.

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


More information about the cfe-commits mailing list