diff --git a/openmp/runtime/src/kmp_tasking.cpp b/openmp/runtime/src/kmp_tasking.cpp --- a/openmp/runtime/src/kmp_tasking.cpp +++ b/openmp/runtime/src/kmp_tasking.cpp @@ -1271,7 +1271,7 @@ } } - if (flags->proxy == TASK_PROXY && + if ((flags->proxy == TASK_PROXY || flags->detachable == TASK_DETACHABLE) && task_team->tt.tt_found_proxy_tasks == FALSE) TCW_4(task_team->tt.tt_found_proxy_tasks, TRUE); if (flags->hidden_helper &&