diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-05-20 15:50:56 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-06-10 20:47:53 -0700 |
| commit | dfb3521160eb4397b7482de68796d370230a8d11 (patch) | |
| tree | f40c8351fec5f2a71e76d402a4d37fdc57f5858e /src/InternPool.zig | |
| parent | 115c08956278b79c848e04c2f4eefca40e6cd8a3 (diff) | |
| download | zig-dfb3521160eb4397b7482de68796d370230a8d11.tar.gz zig-dfb3521160eb4397b7482de68796d370230a8d11.zip | |
compiler: remove var_args_param_type from SimpleType
This is now represented instead by a special `InternPool.Index.Tag` that
has no corresponding type/value.
Diffstat (limited to 'src/InternPool.zig')
| -rw-r--r-- | src/InternPool.zig | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/InternPool.zig b/src/InternPool.zig index 8b826458a8..130bcc1cad 100644 --- a/src/InternPool.zig +++ b/src/InternPool.zig @@ -959,7 +959,6 @@ pub const Index = enum(u32) { const_slice_u8_sentinel_0_type, anyerror_void_error_union_type, generic_poison_type, - var_args_param_type, /// `@TypeOf(.{})` empty_struct_type, @@ -1002,6 +1001,8 @@ pub const Index = enum(u32) { /// is not known until generic function instantiation. generic_poison, + /// Used by Air/Sema only. + var_args_param_type = std.math.maxInt(u32) - 1, none = std.math.maxInt(u32), _, @@ -1195,9 +1196,6 @@ pub const static_keys = [_]Key{ // generic_poison_type .{ .simple_type = .generic_poison }, - // var_args_param_type - .{ .simple_type = .var_args_param }, - // empty_struct_type .{ .anon_struct_type = .{ .types = &.{}, @@ -1570,7 +1568,6 @@ pub const SimpleType = enum(u32) { type_info, generic_poison, - var_args_param, }; pub const SimpleValue = enum(u32) { |
