From 25cd4bb3c9220e308cae9956dc4f579c66bf175a Mon Sep 17 00:00:00 2001 From: Jacob Young Date: Sat, 20 May 2023 15:42:21 -0400 Subject: Type: hack around `isNoReturn` queries for the remaining legacy tags --- src/type.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/type.zig b/src/type.zig index 64a5643eb6..f2fad91eba 100644 --- a/src/type.zig +++ b/src/type.zig @@ -826,7 +826,7 @@ pub const Type = struct { } pub fn isNoReturn(ty: Type, mod: *Module) bool { - return mod.intern_pool.isNoReturn(ty.ip_index); + return if (ty.ip_index != .none) mod.intern_pool.isNoReturn(ty.ip_index) else false; } /// Returns 0 if the pointer is naturally aligned and the element type is 0-bit. -- cgit v1.2.3