| ... | ... | @@ -4576,7 +4576,7 @@ pub fn flushModule(dwarf: *Dwarf, pt: Zcu.PerThread) FlushError!void { |
| 4576 | 4576 | ); |
| 4577 | 4577 | for (dwarf.mods.values(), dwarf.debug_line.section.units.items) |mod_info, *unit| { |
| 4578 | 4578 | unit.clear(); |
| 4579 | | try unit.cross_section_relocs.ensureTotalCapacity(dwarf.gpa, 2 * (1 + mod_info.files.count())); |
| 4579 | try unit.cross_section_relocs.ensureTotalCapacity(dwarf.gpa, mod_info.dirs.count() + 2 * (mod_info.files.count())); |
| 4580 | 4580 | header.clearRetainingCapacity(); |
| 4581 | 4581 | try header.ensureTotalCapacity(unit.header_len); |
| 4582 | 4582 | const unit_len = (if (unit.next.unwrap()) |next_unit| |