| ... | ... | @@ -2372,8 +2372,11 @@ pub fn initWipNav(dwarf: *Dwarf, pt: Zcu.PerThread, nav_index: InternPool.Nav.In |
| 2372 | 2372 | try wip_nav.infoAddrSym(sym_index, 0); |
| 2373 | 2373 | wip_nav.func_high_pc = @intCast(wip_nav.debug_info.items.len); |
| 2374 | 2374 | try diw.writeInt(u32, 0, dwarf.endian); |
| 2375 | | try uleb128(diw, nav.status.resolved.alignment.toByteUnits() orelse |
| 2376 | | target_info.defaultFunctionAlignment(file.mod.resolved_target.result).toByteUnits().?); |
| 2375 | const target = file.mod.resolved_target.result; |
| 2376 | try uleb128(diw, switch (nav.status.resolved.alignment) { |
| 2377 | .none => target_info.defaultFunctionAlignment(target), |
| 2378 | else => |a| a.maxStrict(target_info.minFunctionAlignment(target)), |
| 2379 | }.toByteUnits().?); |
| 2377 | 2380 | try diw.writeByte(@intFromBool(false)); |
| 2378 | 2381 | try diw.writeByte(@intFromBool(func_type.return_type == .noreturn_type)); |
| 2379 | 2382 | |