diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2025-02-05 20:33:39 +0000 |
|---|---|---|
| committer | mlugg <mlugg@mlugg.co.uk> | 2025-02-05 21:17:40 +0000 |
| commit | fbbf34e563a376ea1654dce827b9194ba7211b3a (patch) | |
| tree | dc95e30f87d14c2ff3b3784df76ed10327f4425a /src/Compilation.zig | |
| parent | cac814cf58ca65ffd8081dca6f2f5b26d822ef5d (diff) | |
| download | zig-fbbf34e563a376ea1654dce827b9194ba7211b3a.tar.gz zig-fbbf34e563a376ea1654dce827b9194ba7211b3a.zip | |
Sema: disable runtime safety checks in comptime blocks
Sometimes we emit runtime instructions in comptime scopes. These
instructions will be discarded, but they allow comptime blocks to
contain intermediate runtime-known values, which is necessary for
expressions like `runtime_array.len` to work.
Since we will always throw away these runtime instructions, including
safety checks is a time waste at best and trips an assertion at worst!
Resolves: #20064
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions
