diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-02-08 20:03:17 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-02-08 20:03:17 -0700 |
| commit | 7c1061784b8b126633cfe84f46280f7bf72beffc (patch) | |
| tree | eb99e5eb52d22b9f7d17cfd62dcfb19e3c26296a /src/codegen.zig | |
| parent | 210ee1067b06c14692432b7887077003e52b2137 (diff) | |
| download | zig-7c1061784b8b126633cfe84f46280f7bf72beffc.tar.gz zig-7c1061784b8b126633cfe84f46280f7bf72beffc.zip | |
stage2: fix inferred comptime constant locals
`const` declarations inside comptime blocks were not getting properly
evaluated at compile-time. To accomplish this there is a new ZIR
instruction, `alloc_inferred_comptime`. Actually we already had one
named that, but it got renamed to `alloc_inferred_comptime_mut` to match
the naming convention with the other similar instructions.
Diffstat (limited to 'src/codegen.zig')
0 files changed, 0 insertions, 0 deletions
