mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-28 16:11:29 +00:00
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:
parent
457343dcaa
commit
7881aa1b3a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user