aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/c.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2023-09-14 22:52:09 +0100
committermlugg <mlugg@mlugg.co.uk>2023-09-15 14:29:57 +0100
commit50ef10eb4963167225f7153dc5165292dbac0046 (patch)
treed6cb9b5028c9b38f867c648fef7c16299fab4990 /src/codegen/c.zig
parent6a349648cb29b3e624dfffcc412c4249c0e19d9f (diff)
downloadzig-50ef10eb4963167225f7153dc5165292dbac0046.tar.gz
zig-50ef10eb4963167225f7153dc5165292dbac0046.zip
Sema: add missing compile error for runtime-known const with comptime-only type
When RLS is used to initialize a value with a comptime-only type, the usual "value with comptime-only type depends on runtime control flow" error message isn't hit, because we don't use results from a block. When we reach `make_ptr_const`, we must validate that the value is comptime-known.
Diffstat (limited to 'src/codegen/c.zig')
0 files changed, 0 insertions, 0 deletions