| author | |
| committer | |
| log | 25cd4bb3c9220e308cae9956dc4f579c66bf175a |
| tree | e8bdf1318a1ceef76832dd46e5b1e9cfb913dbd8 |
| parent | e4d498cd3add8d3ccbcb4d5899769cca49a4837c |
1 files changed, 1 insertions(+), 1 deletions(-)
src/type.zig+1-1| ... | ... | @@ -826,7 +826,7 @@ pub const Type = struct { |
| 826 | 826 | } |
| 827 | 827 | |
| 828 | 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 | 832 | /// Returns 0 if the pointer is naturally aligned and the element type is 0-bit. |