aboutsummaryrefslogtreecommitdiff
path: root/src/type.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2023-09-15 01:12:03 +0100
committerAndrew Kelley <andrew@ziglang.org>2023-09-15 01:05:02 -0700
commitcba7e8a4e95aa2a2031d0fbaa8247de37e61fd78 (patch)
treef6e7c7139d90aa41ace1498475d6a56f4c40956f /src/type.zig
parent8592c5cdac41e4e04034e4f9a0fd8cb51e8c4257 (diff)
downloadzig-cba7e8a4e95aa2a2031d0fbaa8247de37e61fd78.tar.gz
zig-cba7e8a4e95aa2a2031d0fbaa8247de37e61fd78.zip
AstGen: do not forward result pointers through @as
The `coerce_result_ptr` instruction is highly problematic and leads to unintentional memory reinterpretation in some cases. It is more correct to simply not forward result pointers through this builtin. `coerce_result_ptr` is still used for struct and array initializations, where it can still cause issues. Eliminating this usage will be a future change. Resolves: #16991
Diffstat (limited to 'src/type.zig')
0 files changed, 0 insertions, 0 deletions