| ... | @@ -826,7 +826,7 @@ pub const Type = struct { | ... | @@ -826,7 +826,7 @@ pub const Type = struct { |
| 826 | } | 826 | } |
| 827 | | 827 | |
| 828 | pub fn isNoReturn(ty: Type, mod: *Module) bool { | 828 | pub fn isNoReturn(ty: Type, mod: *Module) bool { |
| 829 | return mod.intern_pool.isNoReturn(ty.ip_index); | 829 | return if (ty.ip_index != .none) mod.intern_pool.isNoReturn(ty.ip_index) else false; |
| 830 | } | 830 | } |
| 831 | | 831 | |
| 832 | /// Returns 0 if the pointer is naturally aligned and the element type is 0-bit. | 832 | /// Returns 0 if the pointer is naturally aligned and the element type is 0-bit. |