One line fix - bug with final clause of task construct

Should be looking at parent_task->td_flags.final instead of the recently allocated task.

llvm-svn: 237959
This commit is contained in:
Jonathan Peyton 2015-05-21 21:16:38 +00:00
parent 457343dcaa
commit 7881aa1b3a

View File

@ -992,7 +992,7 @@ __kmp_task_alloc( ident_t *loc_ref, kmp_int32 gtid, kmp_tasking_flags_t *flags,
// GEH - Note we serialize the task if the team is serialized to make sure implicit parallel region
// tasks are not left until program termination to execute. Also, it helps locality to execute
// immediately.
taskdata->td_flags.task_serial = ( taskdata->td_flags.final
taskdata->td_flags.task_serial = ( parent_task->td_flags.final
|| taskdata->td_flags.team_serial || taskdata->td_flags.tasking_ser );
taskdata->td_flags.started = 0;