| ... | ... | @@ -1999,7 +1999,7 @@ pub const WipNav = struct { |
| 1999 | 1999 | errdefer _ = if (!decl_gop.found_existing) dwarf.decls.pop(); |
| 2000 | 2000 | const was_generic_decl = decl_gop.found_existing and |
| 2001 | 2001 | switch (try dwarf.debug_info.declAbbrevCode(wip_nav.unit, decl_gop.value_ptr.*)) { |
| 2002 | | else => unreachable, |
| 2002 | .null, |
| 2003 | 2003 | .decl_alias, |
| 2004 | 2004 | .decl_empty_enum, |
| 2005 | 2005 | .decl_enum, |
| ... | ... | @@ -2021,6 +2021,7 @@ pub const WipNav = struct { |
| 2021 | 2021 | .generic_decl_const, |
| 2022 | 2022 | .generic_decl_func, |
| 2023 | 2023 | => true, |
| 2024 | else => unreachable, |
| 2024 | 2025 | }; |
| 2025 | 2026 | if (parent_type.getCaptures(zcu).len == 0) { |
| 2026 | 2027 | if (was_generic_decl) try dwarf.freeCommonEntry(wip_nav.unit, decl_gop.value_ptr.*); |