aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2022-10-18 13:11:35 +0300
committerVeikka Tuominen <git@vexu.eu>2022-10-20 20:11:00 +0300
commit34e4b07d0c3cafd0aad15b217e8c56ab9af5de40 (patch)
treedd705ac25d93cdaa0d2aadfac0c2cfba9e670262 /src/Module.zig
parent13897be0abfeddf7bdfbdc1600bd8279c26004de (diff)
downloadzig-34e4b07d0c3cafd0aad15b217e8c56ab9af5de40.tar.gz
zig-34e4b07d0c3cafd0aad15b217e8c56ab9af5de40.zip
Sema: allow runtime only instructions to be emitted in outside functions
It is possible to get comptime-known values from runtime-known values for example the length of array. Allowing runtime only instructions to be emitted outside function bodies allows these operations to happen. In places where comptime-known values are required we have other methods to ensure that and they usually result in more specific compile errors too. Closes #12240
Diffstat (limited to 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions