aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2024-02-13 02:36:13 +0000
committermlugg <mlugg@mlugg.co.uk>2024-02-16 11:26:34 +0000
commit10784c7fc8d419fff943994f1aa5a454d4e43391 (patch)
treef58674fe9b481693abbba790f95491e950681ef8 /src/Module.zig
parent434537213e406191959818f573b24ca45c1b0e45 (diff)
downloadzig-10784c7fc8d419fff943994f1aa5a454d4e43391.tar.gz
zig-10784c7fc8d419fff943994f1aa5a454d4e43391.zip
AstGen: migrate `ty` result locations to `coerced_ty`
In most cases where AstGen is coercing to a fixed type (such as `u29`, `type`, `std.builtin.CallingConvention) we do not necessarily require an explicit coercion instruction. Instead, Sema knows the type that is required, and can perform the coercion after the fact. This means we can use the `coerced_ty` result location kind, saving unnecessary coercion instructions and therefore ZIR bytes. This required a few enhancements to Sema to introduce missing coercions.
Diffstat (limited to 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions