[OpenMP] Fix atomic entries for captured logical operation

Added missing code for the captured atomic operation.

Differential Revision: https://reviews.llvm.org/D94848
This commit is contained in:
Hansang Bae 2021-01-15 17:37:13 -06:00
parent 15fd6bae0e
commit 2d911f7c72

View File

@ -2536,8 +2536,11 @@ ATOMIC_CRITICAL_CPT_MIX(float10, long double, div_cpt, /, fp, _Quad, 10r,
\
if (flag) { \
new_value OP rhs; \
} else \
(*lhs) = new_value; \
} else { \
new_value = (*lhs); \
(*lhs) OP rhs; \
} \
\
__kmp_release_atomic_lock(&ATOMIC_LOCK##LCK_ID, gtid);