diff options
-rw-r--r-- | openmp/runtime/src/kmp_gsupport.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/openmp/runtime/src/kmp_gsupport.c b/openmp/runtime/src/kmp_gsupport.c index 42d58e50532..21bc0fbbfb6 100644 --- a/openmp/runtime/src/kmp_gsupport.c +++ b/openmp/runtime/src/kmp_gsupport.c @@ -522,8 +522,7 @@ xexpand(KMP_API_NAME_GOMP_PARALLEL_END)(void) } #endif - if (! __kmp_threads[gtid]->th.th_team->t.t_serialized) { - kmp_info_t *thr = __kmp_threads[gtid]; + if (! thr->th.th_team->t.t_serialized) { __kmp_run_after_invoked_task(gtid, __kmp_tid_from_gtid(gtid), thr, thr->th.th_team); |