stage2: fix 32-bit build

Regressed in 7c6f5d26eadb137ab3fb2be340485ebd860a85fe.
This commit is contained in:
Andrew Kelley 2022-01-16 10:18:14 -07:00
parent 0f3938e498
commit 97063efb69

View File

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