[llvm] [openmp] [OMPT][Offload][OpenMP] Fixes for OMPT data used by libomptarget (PR #156020)

Kaloyan Ignatov via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 31 08:21:59 PDT 2025


================
@@ -216,16 +226,16 @@ class Interface {
 
 private:
   /// Target operations id
-  ompt_id_t HostOpId = 0;
-
-  /// Target region data
-  ompt_data_t TargetData = ompt_data_none;
+  ompt_id_t HostOpId{0};
----------------
kaloyan-ignatov wrote:

`OmptTaskInfoPtr` bellow can be initialized on a single line only with curly braces, so the other members of the class followed (for readability and uniformity).

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


More information about the llvm-commits mailing list