remove uses of non-configurable err_int

This commit is contained in:
Veikka Tuominen
2023-10-21 12:56:05 +03:00
parent bf61c5c065
commit 9d9e22e716
11 changed files with 111 additions and 80 deletions

View File

@@ -5906,6 +5906,10 @@ pub fn intType(mod: *Module, signedness: std.builtin.Signedness, bits: u16) Allo
} })).toType();
}
pub fn errorIntType(mod: *Module) std.mem.Allocator.Error!Type {
return mod.intType(.unsigned, mod.errorSetBits());
}
pub fn arrayType(mod: *Module, info: InternPool.Key.ArrayType) Allocator.Error!Type {
const i = try intern(mod, .{ .array_type = info });
return i.toType();