aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/error.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-10-15 17:17:59 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-10-15 17:17:59 -0700
commit186126c2a4032424e1b1cdb8ac379fb2beab7429 (patch)
tree32aa04aa0e19f7a9b4d51677c2051a3b7d7048c4 /test/behavior/error.zig
parent0536c25578fa15e2326eb1061f6db61d6ad3cd65 (diff)
downloadzig-186126c2a4032424e1b1cdb8ac379fb2beab7429.tar.gz
zig-186126c2a4032424e1b1cdb8ac379fb2beab7429.zip
stage2: make hasCodeGenBits() always true for pointers
* LLVM backend: The `alloc` AIR instruction as well as pointer constants which point to a 0-bit element type now call a common codepath to produce a `*const llvm.Value` which is a non-zero pointer with a bogus-but-properly-aligned address. * LLVM backend: improve the lowering of optional types. * Type: `hasCodeGenBits()` now returns `true` for pointers even when it returns `false` for their element types. Effectively, #6706 is now implemented in stage2 but not stage1.
Diffstat (limited to 'test/behavior/error.zig')
0 files changed, 0 insertions, 0 deletions