diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-05-25 22:28:02 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-06-10 20:47:55 -0700 |
| commit | f37c0a459382fa033cefc9bb139277436a78b25e (patch) | |
| tree | 6860bcc6f0d95190cb68fb43fc7da6d593322b1c /src/InternPool.zig | |
| parent | 5d0d5893fd39047e4fdbb6623e4d69babf0b2ed4 (diff) | |
| download | zig-f37c0a459382fa033cefc9bb139277436a78b25e.tar.gz zig-f37c0a459382fa033cefc9bb139277436a78b25e.zip | |
Sema: inferred allocations no longer abuse type/value system
Previously, there were types and values for inferred allocations and a
lot of special-case handling. Now, instead, the special casing is
limited to AIR instructions for these use cases.
Instead of storing data in Value payloads, the data is now stored in AIR
instruction data as well as the previously `void` value type of the
`unresolved_inferred_allocs` hash map.
Diffstat (limited to 'src/InternPool.zig')
| -rw-r--r-- | src/InternPool.zig | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/InternPool.zig b/src/InternPool.zig index dfde352600..f1bc4e3acc 100644 --- a/src/InternPool.zig +++ b/src/InternPool.zig @@ -1156,8 +1156,6 @@ pub const Index = enum(u32) { slice_const_u8_sentinel_0_type, anyerror_void_error_union_type, generic_poison_type, - inferred_alloc_const_type, - inferred_alloc_mut_type, /// `@TypeOf(.{})` empty_struct_type, @@ -1525,10 +1523,6 @@ pub const static_keys = [_]Key{ // generic_poison_type .{ .simple_type = .generic_poison }, - // inferred_alloc_const_type - .{ .simple_type = .inferred_alloc_const }, - // inferred_alloc_mut_type - .{ .simple_type = .inferred_alloc_mut }, // empty_struct_type .{ .anon_struct_type = .{ @@ -1958,12 +1952,6 @@ pub const SimpleType = enum(u32) { type_info, generic_poison, - /// TODO: remove this from `SimpleType`; instead make it only a special `Index` tag like - /// `var_args_param_type`. - inferred_alloc_const, - /// TODO: remove this from `SimpleType`; instead make it only a special `Index` tag like - /// `var_args_param_type`. - inferred_alloc_mut, }; pub const SimpleValue = enum(u32) { |
