diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2023-09-14 22:52:09 +0100 |
|---|---|---|
| committer | mlugg <mlugg@mlugg.co.uk> | 2023-09-15 14:29:57 +0100 |
| commit | 50ef10eb4963167225f7153dc5165292dbac0046 (patch) | |
| tree | d6cb9b5028c9b38f867c648fef7c16299fab4990 /src/codegen/spirv | |
| parent | 6a349648cb29b3e624dfffcc412c4249c0e19d9f (diff) | |
| download | zig-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/spirv')
0 files changed, 0 insertions, 0 deletions
