fixup for previous commit

This commit is contained in:
Andrew Kelley
2018-08-22 13:17:09 -04:00
parent 87b10400c2
commit 5aeb3217ee
2 changed files with 2 additions and 1 deletions

View File

@@ -10708,7 +10708,7 @@ static IrInstruction *ir_analyze_cast(IrAnalyze *ira, IrInstruction *source_inst
actual_type->data.pointer.child_type->data.array.child_type, source_node,
!wanted_child_type->data.pointer.is_const).id == ConstCastResultIdOk)
{
IrInstruction *cast1 = ir_resolve_ptr_of_array_to_slice(ira, source_instr, value, wanted_child_type);
IrInstruction *cast1 = ir_resolve_ptr_of_array_to_unknown_len_ptr(ira, source_instr, value, wanted_child_type);
return ir_analyze_maybe_wrap(ira, source_instr, cast1, wanted_type);
}
}