aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/Step/Compile.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2024-04-17 11:24:42 +0100
committermlugg <mlugg@mlugg.co.uk>2024-04-17 13:41:26 +0100
commit23062a5bed285f72e35651dd1e8b4a125b83dba0 (patch)
treeea6746763647264d62389f73768662184d32c82e /lib/std/Build/Step/Compile.zig
parent3c45a945285dff00d0eb8160342560bcb7d24cc5 (diff)
downloadzig-23062a5bed285f72e35651dd1e8b4a125b83dba0.tar.gz
zig-23062a5bed285f72e35651dd1e8b4a125b83dba0.zip
Value: convert undefined values to 0xAA for bitwise operations
The operation `undefined & 0` ought to result in the value `0`, and likewise for zeroing only some bits. `std/packed_int_array.zig` tests were failing because this behavior was not implemented -- this issue was previously masked by faulty bitcast logic which turned `undefined` values into `0xAA` on pointer loads. Ideally, we would like to be able to track the undefined bits at comptime. This is related to #19634.
Diffstat (limited to 'lib/std/Build/Step/Compile.zig')
0 files changed, 0 insertions, 0 deletions