projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0041a69
)
[OpenMP][DeviceRTL] Fix build issue
author
Shilei Tian
<i@tianshilei.me>
Thu, 6 Oct 2022 20:21:51 +0000
(16:21 -0400)
committer
Shilei Tian
<i@tianshilei.me>
Thu, 6 Oct 2022 20:21:51 +0000
(16:21 -0400)
openmp/libomptarget/DeviceRTL/src/State.cpp
patch
|
blob
|
history
diff --git
a/openmp/libomptarget/DeviceRTL/src/State.cpp
b/openmp/libomptarget/DeviceRTL/src/State.cpp
index
9e00c1f
..
fafe22b
100644
(file)
--- 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!");