Clean-up cancellation state flag between parallel regions

Without this fix, cancellation requests in one parallel region cause
cancellation of the second region even though the second one was
not intended to be cancelled.

llvm-svn: 250727
This commit is contained in:
Jonathan Peyton 2015-10-19 19:33:38 +00:00
parent faf5187ee0
commit 45ca5dada1
1 changed files with 4 additions and 0 deletions

View File

@ -2083,6 +2083,10 @@ __kmp_fork_call(
#endif /* OMP_40_ENABLED */
team->t.t_sched = get__sched_2(parent_team, master_tid); // set master's schedule as new run-time schedule
#if OMP_40_ENABLED
team->t.t_cancel_request = cancel_noreq;
#endif
// Update the floating point rounding in the team if required.
propagateFPControl(team);