[OpenMP][DeviceRTL] Fix build issue
authorShilei Tian <i@tianshilei.me>
Thu, 6 Oct 2022 20:21:51 +0000 (16:21 -0400)
committerShilei Tian <i@tianshilei.me>
Thu, 6 Oct 2022 20:21:51 +0000 (16:21 -0400)
openmp/libomptarget/DeviceRTL/src/State.cpp

index 9e00c1f..fafe22b 100644 (file)
@@ -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!");