[openmp][devicertl] Add a missing loader_uninitialized attribute
authorJon Chesterfield <jonathanchesterfield@gmail.com>
Mon, 29 Nov 2021 23:54:14 +0000 (23:54 +0000)
committerJon Chesterfield <jonathanchesterfield@gmail.com>
Mon, 29 Nov 2021 23:54:37 +0000 (23:54 +0000)
openmp/libomptarget/DeviceRTL/src/Debug.cpp

index 79be728..f458a1b 100644 (file)
@@ -55,6 +55,7 @@ int32_t __llvm_omp_vprintf(const char *Format, void *Arguments, uint32_t Size) {
 }
 
 /// Current indentation level for the function trace. Only accessed by thread 0.
+__attribute__((loader_uninitialized))
 static uint32_t Level;
 #pragma omp allocate(Level) allocator(omp_pteam_mem_alloc)