| ... | @@ -2871,7 +2871,8 @@ fn zirValidateArrayInit( | ... | @@ -2871,7 +2871,8 @@ fn zirValidateArrayInit( |
| 2871 | | 2871 | |
| 2872 | // Collect the comptime element values in case the array literal ends up | 2872 | // Collect the comptime element values in case the array literal ends up |
| 2873 | // being comptime-known. | 2873 | // being comptime-known. |
| 2874 | const element_vals = try sema.arena.alloc(Value, array_ty.arrayLenIncludingSentinel()); | 2874 | const array_len_s = try sema.usizeCast(block, init_src, array_ty.arrayLenIncludingSentinel()); |
| | 2875 | const element_vals = try sema.arena.alloc(Value, array_len_s); |
| 2875 | const opt_opv = try sema.typeHasOnePossibleValue(block, init_src, array_ty); | 2876 | const opt_opv = try sema.typeHasOnePossibleValue(block, init_src, array_ty); |
| 2876 | const air_tags = sema.air_instructions.items(.tag); | 2877 | const air_tags = sema.air_instructions.items(.tag); |
| 2877 | const air_datas = sema.air_instructions.items(.data); | 2878 | const air_datas = sema.air_instructions.items(.data); |