From 5aeb3217ee42753f7bc837fdfe7cc04fb132d150 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 22 Aug 2018 13:17:09 -0400 Subject: [PATCH] fixup for previous commit --- doc/langref.html.in | 1 + src/ir.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/langref.html.in b/doc/langref.html.in index 052647a158..e34ab677f6 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -3838,6 +3838,7 @@ test "float widening" {

TODO: [N]T to ?[]const T

TODO: *[N]T to []T

TODO: *[N]T to [*]T

+

TODO: *[N]T to ?[*]T

TODO: *T to *[1]T

TODO: [N]T to E![]const T

{#header_close#} diff --git a/src/ir.cpp b/src/ir.cpp index 8814daa15b..6ee44b507d 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -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); } }