| ... | ... | @@ -10517,19 +10517,6 @@ static IrInstruction *ir_analyze_cast(IrAnalyze *ira, IrInstruction *source_inst |
| 10517 | 10517 | } else { |
| 10518 | 10518 | return ira->codegen->invalid_instruction; |
| 10519 | 10519 | } |
| 10520 | | } else if (wanted_child_type->id == ZigTypeIdPointer && |
| 10521 | | wanted_child_type->data.pointer.is_const && |
| 10522 | | (actual_type->id == ZigTypeIdPointer || is_container(actual_type))) |
| 10523 | | { |
| 10524 | | IrInstruction *cast1 = ir_analyze_cast(ira, source_instr, wanted_child_type, value); |
| 10525 | | if (type_is_invalid(cast1->value.type)) |
| 10526 | | return ira->codegen->invalid_instruction; |
| 10527 | | |
| 10528 | | IrInstruction *cast2 = ir_analyze_cast(ira, source_instr, wanted_type, cast1); |
| 10529 | | if (type_is_invalid(cast2->value.type)) |
| 10530 | | return ira->codegen->invalid_instruction; |
| 10531 | | |
| 10532 | | return cast2; |
| 10533 | 10520 | } else if ( |
| 10534 | 10521 | wanted_child_type->id == ZigTypeIdPointer && |
| 10535 | 10522 | wanted_child_type->data.pointer.ptr_len == PtrLenUnknown && |