__kmp_partition_places: Update assertion for new parameter update_master_only

If update_master_only is set the place list is not completely traversed
and therefore this assertion failed. Make it only trigger if
update_master_only is false.

(was introduced by D20539)

Differential Revision: http://reviews.llvm.org/D21925

llvm-svn: 274482
This commit is contained in:
Jonas Hahnfeld 2016-07-04 05:58:10 +00:00
parent 4cb46e6747
commit 170fcc8772

View File

@ -4646,7 +4646,7 @@ __kmp_partition_places( kmp_team_t *team, int update_master_only )
team->t.t_id, f, th->th.th_new_place,
th->th.th_first_place, th->th.th_last_place ) );
}
KMP_DEBUG_ASSERT( place == masters_place );
KMP_DEBUG_ASSERT( update_master_only || place == masters_place );
}
else {
int S, rem, gap, s_count;
@ -4705,7 +4705,7 @@ __kmp_partition_places( kmp_team_t *team, int update_master_only )
team->t.t_id, f, th->th.th_new_place,
th->th.th_first_place, th->th.th_last_place) );
}
KMP_DEBUG_ASSERT( place == masters_place );
KMP_DEBUG_ASSERT( update_master_only || place == masters_place );
}
}
break;