| ... | @@ -6154,6 +6154,7 @@ static IrInstruction *ir_analyze_cast_ref(IrAnalyze *ira, IrInstruction *source_ | ... | @@ -6154,6 +6154,7 @@ static IrInstruction *ir_analyze_cast_ref(IrAnalyze *ira, IrInstruction *source_ |
| 6154 | } else { | 6154 | } else { |
| 6155 | IrInstruction *new_instruction = ir_build_ref(&ira->new_irb, source_instr->scope, | 6155 | IrInstruction *new_instruction = ir_build_ref(&ira->new_irb, source_instr->scope, |
| 6156 | source_instr->source_node, value, true); | 6156 | source_instr->source_node, value, true); |
| | 6157 | new_instruction->value.type = wanted_type; |
| 6157 | | 6158 | |
| 6158 | TypeTableEntry *child_type = wanted_type->data.pointer.child_type; | 6159 | TypeTableEntry *child_type = wanted_type->data.pointer.child_type; |
| 6159 | if (type_has_bits(child_type)) { | 6160 | if (type_has_bits(child_type)) { |