aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-08-22 13:17:09 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-08-22 14:24:48 -0400
commit5aeb3217ee42753f7bc837fdfe7cc04fb132d150 (patch)
tree270f4b6b38bafdd33872b87032493f4cdf395b9a /src
parent87b10400c2a2d39f33e361cf4d7fd8caee7e519b (diff)
downloadzig-5aeb3217ee42753f7bc837fdfe7cc04fb132d150.tar.gz
zig-5aeb3217ee42753f7bc837fdfe7cc04fb132d150.zip
fixup for previous commit
Diffstat (limited to 'src')
-rw-r--r--src/ir.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}
}