mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
stage2: fix 32-bit build
Regressed in 7c6f5d26eadb137ab3fb2be340485ebd860a85fe.
This commit is contained in:
parent
0f3938e498
commit
97063efb69
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user