[Openmp-commits] [openmp] 9dd0476 - [OpenMP][DeviceRTL] Fix build issue

Shilei Tian via Openmp-commits openmp-commits at lists.llvm.org
Thu Oct 6 13:22:19 PDT 2022


Author: Shilei Tian
Date: 2022-10-06T16:21:51-04:00
New Revision: 9dd047629326bdf9974746f848dd4a834cebd49a

URL: https://github.com/llvm/llvm-project/commit/9dd047629326bdf9974746f848dd4a834cebd49a
DIFF: https://github.com/llvm/llvm-project/commit/9dd047629326bdf9974746f848dd4a834cebd49a.diff

LOG: [OpenMP][DeviceRTL] Fix build issue

Added: 
    

Modified: 
    openmp/libomptarget/DeviceRTL/src/State.cpp

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/DeviceRTL/src/State.cpp b/openmp/libomptarget/DeviceRTL/src/State.cpp
index 9e00c1fea7a7..fafe22b6b802 100644
--- a/openmp/libomptarget/DeviceRTL/src/State.cpp
+++ b/openmp/libomptarget/DeviceRTL/src/State.cpp
@@ -267,7 +267,7 @@ void state::enterDataEnvironment(IdentTy *Ident) {
     if (!atomic::cas(ThreadStatesBitsPtr, uintptr_t(0),
                      reinterpret_cast<uintptr_t>(ThreadStatesPtr),
                      atomic::seq_cst, atomic::seq_cst))
-      memory::freeGlobal(ThreadStatesPtr, Bytes,
+      memory::freeGlobal(ThreadStatesPtr,
                          "Thread state array allocated multiple times");
     ASSERT(atomic::load(ThreadStatesBitsPtr, atomic::seq_cst) &&
            "Expected valid thread states bit!");


        


More information about the Openmp-commits mailing list