authorgravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2023-05-20 15:42:21-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-06-10 20:47:54-07:00
log25cd4bb3c9220e308cae9956dc4f579c66bf175a
treee8bdf1318a1ceef76832dd46e5b1e9cfb913dbd8
parente4d498cd3add8d3ccbcb4d5899769cca49a4837c

Type: hack around `isNoReturn` queries for the remaining legacy tags


1 files changed, 1 insertions(+), 1 deletions(-)

src/type.zig+1-1
...@@ -826,7 +826,7 @@ pub const Type = struct {...@@ -826,7 +826,7 @@ pub const Type = struct {
826 }826 }
827827
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 }
831831
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.