@@ -735,7 +735,7 @@ const Unit = struct {
735735 try dwarf .resolveReloc (
736736 unit_off + reloc .source_off ,
737737 target_unit .off + (if (reloc .target_entry .unwrap ()) | target_entry |
738- target_unit .header_len + target_unit .getEntry (target_entry ).assertNonEmpty (unit , sec , dwarf ).off
738+ target_unit .header_len + target_unit .getEntry (target_entry ).assertNonEmpty (target_unit , sec , dwarf ).off
739739 else
740740 0 ) + reloc .target_off ,
741741 dwarf .sectionOffsetBytes (),
@@ -749,7 +749,7 @@ const Unit = struct {
749749 try dwarf .resolveReloc (
750750 unit_off + reloc .source_off ,
751751 target_unit .off + (if (reloc .target_entry .unwrap ()) | target_entry |
752- target_unit .header_len + target_unit .getEntry (target_entry ).assertNonEmpty (unit , sec , dwarf ).off
752+ target_unit .header_len + target_unit .getEntry (target_entry ).assertNonEmpty (target_unit , sec , dwarf ).off
753753 else
754754 0 ) + reloc .target_off ,
755755 dwarf .sectionOffsetBytes (),
@@ -1000,7 +1000,7 @@ const Entry = struct {
10001000 try dwarf .resolveReloc (
10011001 entry_off + reloc .source_off ,
10021002 target_unit .off + (if (reloc .target_entry .unwrap ()) | target_entry |
1003- target_unit .header_len + target_unit .getEntry (target_entry ).assertNonEmpty (unit , sec , dwarf ).off
1003+ target_unit .header_len + target_unit .getEntry (target_entry ).assertNonEmpty (target_unit , sec , dwarf ).off
10041004 else
10051005 0 ) + reloc .target_off ,
10061006 dwarf .sectionOffsetBytes (),
@@ -1014,7 +1014,7 @@ const Entry = struct {
10141014 try dwarf .resolveReloc (
10151015 entry_off + reloc .source_off ,
10161016 target_unit .off + (if (reloc .target_entry .unwrap ()) | target_entry |
1017- target_unit .header_len + target_unit .getEntry (target_entry ).assertNonEmpty (unit , sec , dwarf ).off
1017+ target_unit .header_len + target_unit .getEntry (target_entry ).assertNonEmpty (target_unit , sec , dwarf ).off
10181018 else
10191019 0 ) + reloc .target_off ,
10201020 dwarf .sectionOffsetBytes (),
@@ -1850,7 +1850,7 @@ pub const WipNav = struct {
18501850 const ty = value .typeOf (zcu );
18511851 if (std .debug .runtime_safety ) assert (ty .comptimeOnly (zcu ) and try ty .onePossibleValue (wip_nav .pt ) == null );
18521852 if (ty .toIntern () == .type_type ) return wip_nav .getTypeEntry (value .toType ());
1853- if (ip .isFunctionType (ty .toIntern ())) return wip_nav .getNavEntry (zcu .funcInfo (value .toIntern ()).owner_nav );
1853+ if (ip .isFunctionType (ty .toIntern ()) and ! value . isUndef ( zcu ) ) return wip_nav .getNavEntry (zcu .funcInfo (value .toIntern ()).owner_nav );
18541854 const gop = try wip_nav .dwarf .values .getOrPut (wip_nav .dwarf .gpa , value .toIntern ());
18551855 const unit : Unit.Index = .main ;
18561856 if (gop .found_existing ) return .{ unit , gop .value_ptr .* };
0 commit comments