mirror of
https://github.com/ziglang/zig.git
synced 2026-01-01 19:13:16 +00:00
PointerInfo child is known at comptime
This commit is contained in:
parent
2d8553c853
commit
09d7033d1d
@ -15868,6 +15868,7 @@ static ConstExprValue *ir_make_type_info_value(IrAnalyze *ira, ConstExprValue *p
|
||||
fields[3].data.x_ptr.special = ConstPtrSpecialRef;
|
||||
fields[3].data.x_ptr.mut = ConstPtrMutComptimeVar;
|
||||
ConstExprValue *union_val = create_const_vals(1);
|
||||
union_val->special = ConstValSpecialStatic;
|
||||
union_val->type = type_info_type->data.x_type;
|
||||
bigint_init_unsigned(&union_val->data.x_union.tag, type_id_index(type_entry->data.pointer.child_type->id));
|
||||
union_val->data.x_union.payload = ir_make_type_info_value(ira, union_val, type_entry->data.pointer.child_type);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user