[Openmp-commits] [openmp] [OpenMP] Remove optimization skipping reduction struct initialization (PR #65697)

Shilei Tian via Openmp-commits openmp-commits at lists.llvm.org
Thu Sep 7 22:14:18 PDT 2023


================
@@ -2699,6 +2694,7 @@ void *__kmpc_task_reduction_get_th_data(int gtid, void *tskgrp, void *data) {
         return p_priv[tid];
       }
     }
+    KMP_ASSERT(tg->parent != NULL);
----------------
shiltian wrote:

```suggestion
    KMP_ASSERT(tg->parent);
```

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


More information about the Openmp-commits mailing list