mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-17 05:24:49 +00:00
__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:
parent
4cb46e6747
commit
170fcc8772
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user