| ... | @@ -16533,7 +16533,8 @@ static IrInstruction *ir_analyze_container_init_fields_union(IrAnalyze *ira, IrI | ... | @@ -16533,7 +16533,8 @@ static IrInstruction *ir_analyze_container_init_fields_union(IrAnalyze *ira, IrI |
| 16533 | if ((err = type_resolve(ira->codegen, casted_field_value->value.type, ResolveStatusZeroBitsKnown))) | 16533 | if ((err = type_resolve(ira->codegen, casted_field_value->value.type, ResolveStatusZeroBitsKnown))) |
| 16534 | return ira->codegen->invalid_instruction; | 16534 | return ira->codegen->invalid_instruction; |
| 16535 | | 16535 | |
| 16536 | bool is_comptime = ir_should_inline(ira->new_irb.exec, instruction->scope); | 16536 | bool is_comptime = ir_should_inline(ira->new_irb.exec, instruction->scope) |
| | 16537 | || type_requires_comptime(ira->codegen, container_type) == ReqCompTimeYes; |
| 16537 | if (is_comptime || casted_field_value->value.special != ConstValSpecialRuntime || | 16538 | if (is_comptime || casted_field_value->value.special != ConstValSpecialRuntime || |
| 16538 | !type_has_bits(casted_field_value->value.type)) | 16539 | !type_has_bits(casted_field_value->value.type)) |
| 16539 | { | 16540 | { |
| ... | @@ -16584,7 +16585,8 @@ static IrInstruction *ir_analyze_container_init_fields(IrAnalyze *ira, IrInstruc | ... | @@ -16584,7 +16585,8 @@ static IrInstruction *ir_analyze_container_init_fields(IrAnalyze *ira, IrInstruc |
| 16584 | | 16585 | |
| 16585 | IrInstructionStructInitField *new_fields = allocate<IrInstructionStructInitField>(actual_field_count); | 16586 | IrInstructionStructInitField *new_fields = allocate<IrInstructionStructInitField>(actual_field_count); |
| 16586 | | 16587 | |
| 16587 | bool is_comptime = ir_should_inline(ira->new_irb.exec, instruction->scope); | 16588 | bool is_comptime = ir_should_inline(ira->new_irb.exec, instruction->scope) |
| | 16589 | || type_requires_comptime(ira->codegen, container_type) == ReqCompTimeYes; |
| 16588 | | 16590 | |
| 16589 | ConstExprValue const_val = {}; | 16591 | ConstExprValue const_val = {}; |
| 16590 | const_val.special = ConstValSpecialStatic; | 16592 | const_val.special = ConstValSpecialStatic; |