| ... | @@ -25683,6 +25683,10 @@ static Error ir_make_type_info_value(IrAnalyze *ira, IrInst* source_instr, ZigTy | ... | @@ -25683,6 +25683,10 @@ static Error ir_make_type_info_value(IrAnalyze *ira, IrInst* source_instr, ZigTy |
| 25683 | } | 25683 | } |
| 25684 | set_optional_payload(inner_fields[2], struct_field->init_val); | 25684 | set_optional_payload(inner_fields[2], struct_field->init_val); |
| 25685 | | 25685 | |
| | 25686 | inner_fields[3]->special = ConstValSpecialStatic; |
| | 25687 | inner_fields[3]->type = ira->codegen->builtin_types.entry_bool; |
| | 25688 | inner_fields[3]->data.x_bool = struct_field->is_comptime; |
| | 25689 | |
| 25686 | ZigValue *name = create_const_str_lit(ira->codegen, struct_field->name)->data.x_ptr.data.ref.pointee; | 25690 | ZigValue *name = create_const_str_lit(ira->codegen, struct_field->name)->data.x_ptr.data.ref.pointee; |
| 25687 | init_const_slice(ira->codegen, inner_fields[0], name, 0, buf_len(struct_field->name), true); | 25691 | init_const_slice(ira->codegen, inner_fields[0], name, 0, buf_len(struct_field->name), true); |
| 25688 | | 25692 | |
| ... | @@ -26291,6 +26295,8 @@ static ZigType *type_info_to_type(IrAnalyze *ira, IrInst *source_instr, ZigTypeI | ... | @@ -26291,6 +26295,8 @@ static ZigType *type_info_to_type(IrAnalyze *ira, IrInst *source_instr, ZigTypeI |
| 26291 | buf_ptr(&field->type_entry->name), buf_ptr(&field->type_entry->name))); | 26295 | buf_ptr(&field->type_entry->name), buf_ptr(&field->type_entry->name))); |
| 26292 | return ira->codegen->invalid_inst_gen->value->type; | 26296 | return ira->codegen->invalid_inst_gen->value->type; |
| 26293 | } | 26297 | } |
| | 26298 | if ((err = get_const_field_bool(ira, source_instr->source_node, field_value, "is_comptime", 3, &field->is_comptime))) |
| | 26299 | return ira->codegen->invalid_inst_gen->value->type; |
| 26294 | } | 26300 | } |
| 26295 | | 26301 | |
| 26296 | return entry; | 26302 | return entry; |