mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-17 19:50:12 -08:00
rdi_from_dwarf: do not assume non-zero root tags in each unit
This commit is contained in:
1 parent
1ac8fb5202
commit
d66094161d
1 file changed
+1
-1
@@ -1102,7 +1102,7 @@ d2r_convert(Arena *arena, D2R_ConvertParams *params)
|
||||
{
|
||||
U64 root_tags_in_this_unit = unit_info_root_tag_offs[unit_idx].count;
|
||||
U64 root_tags_per_work = (root_tags_in_this_unit + lane_count()-1) / lane_count();
|
||||
U64 works_per_this_unit = (root_tags_in_this_unit+root_tags_per_work-1) / root_tags_per_work;
|
||||
U64 works_per_this_unit = root_tags_per_work ? ((root_tags_in_this_unit+root_tags_per_work-1) / root_tags_per_work) : 0;
|
||||
if(build)
|
||||
{
|
||||
D2R_SubUnitWork *works = sub_unit_works + sub_unit_work_idx;
|
||||
|
||||
Reference in new issue
Block a user