[Openmp-commits] [llvm] [openmp] [OMPT][Offload][OpenMP] Fixes for OMPT data used by libomptarget (reapply #156020) (PR #175165)

Joseph Huber via Openmp-commits openmp-commits at lists.llvm.org
Tue Jan 13 07:38:10 PST 2026


================
@@ -236,7 +236,7 @@ class Interface {
   ompt_task_info_t OmptTaskInfo{ompt_data_none, ompt_data_none};
 
   /// Ptr to TaskInfo in OpenMP runtime in case of deferred target tasks
-  ompt_task_info_t *OmptTaskInfoPtr{&OmptTaskInfo};
+  ompt_task_info_t *OmptTaskInfoPtr{nullptr};
----------------
jhuber6 wrote:

Why does this create a global constructor? This interface should be generated when the runtime is initialized, not statically from my intuition

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


More information about the Openmp-commits mailing list