authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-08-22 13:17:09-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-08-22 14:24:48-04:00
log5aeb3217ee42753f7bc837fdfe7cc04fb132d150
tree270f4b6b38bafdd33872b87032493f4cdf395b9a
parent87b10400c2a2d39f33e361cf4d7fd8caee7e519b

fixup for previous commit


2 files changed, 2 insertions(+), 1 deletions(-)

doc/langref.html.in+1
...@@ -3838,6 +3838,7 @@ test "float widening" {...@@ -3838,6 +3838,7 @@ test "float widening" {
3838 <p>TODO: [N]T to ?[]const T</p>3838 <p>TODO: [N]T to ?[]const T</p>
3839 <p>TODO: *[N]T to []T</p>3839 <p>TODO: *[N]T to []T</p>
3840 <p>TODO: *[N]T to [*]T</p>3840 <p>TODO: *[N]T to [*]T</p>
3841 <p>TODO: *[N]T to ?[*]T</p>
3841 <p>TODO: *T to *[1]T</p>3842 <p>TODO: *T to *[1]T</p>
3842 <p>TODO: [N]T to E![]const T</p>3843 <p>TODO: [N]T to E![]const T</p>
3843 {#header_close#}3844 {#header_close#}
src/ir.cpp+1-1
...@@ -10708,7 +10708,7 @@ static IrInstruction *ir_analyze_cast(IrAnalyze *ira, IrInstruction *source_inst...@@ -10708,7 +10708,7 @@ static IrInstruction *ir_analyze_cast(IrAnalyze *ira, IrInstruction *source_inst
10708 actual_type->data.pointer.child_type->data.array.child_type, source_node,10708 actual_type->data.pointer.child_type->data.array.child_type, source_node,
10709 !wanted_child_type->data.pointer.is_const).id == ConstCastResultIdOk)10709 !wanted_child_type->data.pointer.is_const).id == ConstCastResultIdOk)
10710 {10710 {
10711 IrInstruction *cast1 = ir_resolve_ptr_of_array_to_slice(ira, source_instr, value, wanted_child_type);10711 IrInstruction *cast1 = ir_resolve_ptr_of_array_to_unknown_len_ptr(ira, source_instr, value, wanted_child_type);
10712 return ir_analyze_maybe_wrap(ira, source_instr, cast1, wanted_type);10712 return ir_analyze_maybe_wrap(ira, source_instr, cast1, wanted_type);
10713 }10713 }
10714 }10714 }