mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-05-07 10:22:42 +03:00
5c68afef94
`const foo = comptime ...` generated invalid ZIR when the initialization expression contained an array literal because the validate_array_init_comptime instruction assumed that the corresponding alloc instruction was comptime. The solution is to look slightly ahead and notice that the initialization expression would be comptime-known and affect the alloc instruction tag accordingly.