diff --git a/src/ir.cpp b/src/ir.cpp index f2229178f..eef6ab673 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -3679,7 +3679,7 @@ void ir_emit_slice_bounds_check(irProcedure *proc, Token token, irValue *low, ir low = ir_emit_conv(proc, low, t_int); high = ir_emit_conv(proc, high, t_int); - irValue **args = gb_alloc_array(a, irValue *, 5); + irValue **args = gb_alloc_array(a, irValue *, 6); args[0] = file; args[1] = line; args[2] = column;