aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Thread/Condition.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-01-06 00:52:10 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-01-06 00:52:10 -0700
commit8c6175c1343a00278efc029a0be4091ff505dc3d (patch)
tree63f9c87d0f37757f5c0c0b543fc94ea4fe68ae22 /lib/std/Thread/Condition.zig
parent713d2a9b3883942491b40738245232680877cc66 (diff)
downloadzig-8c6175c1343a00278efc029a0be4091ff505dc3d.tar.gz
zig-8c6175c1343a00278efc029a0be4091ff505dc3d.zip
Sema: const inferred alloc infers comptime-ness
const locals now detect if the value ends up being comptime known. In such case, it replaces the runtime AIR instructions with a decl_ref const. In the backends, some more sophisticated logic for marking decls as alive was needed to prevent Decls incorrectly being garbage collected that were indirectly referenced in such manner.
Diffstat (limited to 'lib/std/Thread/Condition.zig')
0 files changed, 0 insertions, 0 deletions