authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-01-16 10:18:14-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-01-16 10:18:14-07:00
log97063efb69d11bfe7210555948b1f59ab6fb9d08
treec48df8d677237ab82ed98d71ffe2ca7a5163b358
parent0f3938e498624868a951423a0b1ca9749301130a

stage2: fix 32-bit build

Regressed in 7c6f5d26eadb137ab3fb2be340485ebd860a85fe.

1 files changed, 2 insertions(+), 1 deletions(-)

src/Sema.zig+2-1
...@@ -2871,7 +2871,8 @@ fn zirValidateArrayInit(...@@ -2871,7 +2871,8 @@ fn zirValidateArrayInit(
28712871
2872 // Collect the comptime element values in case the array literal ends up2872 // 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);