Modify slice_expr_error_* logic to change depending on which parameters are passed

This commit is contained in:
gingerBill
2019-03-25 21:20:12 +00:00
parent 4a15689776
commit 9e6d488063
3 changed files with 61 additions and 25 deletions
+2 -1
View File
@@ -1606,7 +1606,8 @@ void generate_minimum_dependency_set(Checker *c, Entity *start) {
if (!build_context.no_bounds_check) {
String bounds_check_entities[] = {
str_lit("bounds_check_error"),
str_lit("slice_expr_error"),
str_lit("slice_expr_error_hi"),
str_lit("slice_expr_error_lo_hi"),
str_lit("dynamic_array_expr_error"),
};
for (isize i = 0; i < gb_count_of(bounds_check_entities); i++) {