aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2023-10-21 12:56:05 +0300
committerVeikka Tuominen <git@vexu.eu>2023-10-22 14:29:26 +0300
commit9d9e22e716a4b6de9a26f2553ea5c980efc79d4a (patch)
tree7f66f1f1026ab48ca42836ef95a86c9edf2416a0 /src/Module.zig
parentbf61c5c0656e3b2198fb009fe5cc59f55263ceae (diff)
downloadzig-9d9e22e716a4b6de9a26f2553ea5c980efc79d4a.tar.gz
zig-9d9e22e716a4b6de9a26f2553ea5c980efc79d4a.zip
remove uses of non-configurable `err_int`
Diffstat (limited to 'src/Module.zig')
-rw-r--r--src/Module.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Module.zig b/src/Module.zig
index 36d9a4284c..c6a28caab4 100644
--- a/src/Module.zig
+++ b/src/Module.zig
@@ -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();