aboutsummaryrefslogtreecommitdiff
path: root/src/InternPool.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-07-10 18:28:48 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-07-18 19:02:05 -0700
commit8f37b794a5551c7614d8db3e1e8532fc2644d3c2 (patch)
tree72f876783d85eaaba02caab02e5520a337cc5cee /src/InternPool.zig
parentcbbb5cc2ec8893869f729153cd07a76c5df8c83e (diff)
downloadzig-8f37b794a5551c7614d8db3e1e8532fc2644d3c2.tar.gz
zig-8f37b794a5551c7614d8db3e1e8532fc2644d3c2.zip
InternPool: fix debug info helpers for changes to functions
It still doesn't work correctly due to incorrect debug info for packed structs.
Diffstat (limited to 'src/InternPool.zig')
-rw-r--r--src/InternPool.zig22
1 files changed, 19 insertions, 3 deletions
diff --git a/src/InternPool.zig b/src/InternPool.zig
index a6dd80e07e..1f1b115f5c 100644
--- a/src/InternPool.zig
+++ b/src/InternPool.zig
@@ -1599,10 +1599,14 @@ pub const Index = enum(u32) {
type_union_untagged: struct { data: Module.Union.Index },
type_union_safety: struct { data: Module.Union.Index },
type_function: struct {
+ const @"data.flags.has_comptime_bits" = opaque {};
+ const @"data.flags.has_noalias_bits" = opaque {};
const @"data.params_len" = opaque {};
data: *Tag.TypeFunction,
+ @"trailing.comptime_bits.len": *@"data.flags.has_comptime_bits",
+ @"trailing.noalias_bits.len": *@"data.flags.has_noalias_bits",
@"trailing.param_types.len": *@"data.params_len",
- trailing: struct { param_types: []Index },
+ trailing: struct { comptime_bits: []u32, noalias_bits: []u32, param_types: []Index },
},
undef: DataIsIndex,
@@ -1646,8 +1650,20 @@ pub const Index = enum(u32) {
float_comptime_float: struct { data: *Float128 },
variable: struct { data: *Tag.Variable },
extern_func: struct { data: *Key.ExternFunc },
- func_decl: struct { data: *Tag.FuncDecl },
- func_instance: struct { data: *Tag.FuncInstance },
+ func_decl: struct {
+ const @"data.analysis.inferred_error_set" = opaque {};
+ data: *Tag.FuncDecl,
+ @"trailing.resolved_error_set.len": *@"data.analysis.inferred_error_set",
+ trailing: struct { resolved_error_set: []Index },
+ },
+ func_instance: struct {
+ const @"data.analysis.inferred_error_set" = opaque {};
+ const @"data.generic_owner.data.ty.data.params_len" = opaque {};
+ data: *Tag.FuncInstance,
+ @"trailing.resolved_error_set.len": *@"data.analysis.inferred_error_set",
+ @"trailing.comptime_args.len": *@"data.generic_owner.data.ty.data.params_len",
+ trailing: struct { resolved_error_set: []Index, comptime_args: []Index },
+ },
only_possible_value: DataIsIndex,
union_value: struct { data: *Key.Union },
bytes: struct { data: *Bytes },