stage2: move float types to InternPool

This commit is contained in:
Andrew Kelley
2023-05-03 16:07:36 -07:00
parent aa1bb5517d
commit 4cd8a40b3b
6 changed files with 403 additions and 256 deletions

View File

@@ -1412,13 +1412,13 @@ pub const CType = extern union {
.Bool => self.init(.bool),
.Float => self.init(switch (ty.tag()) {
.f16 => .zig_f16,
.f32 => .zig_f32,
.f64 => .zig_f64,
.f80 => .zig_f80,
.f128 => .zig_f128,
.c_longdouble => .zig_c_longdouble,
.Float => self.init(switch (ty.ip_index) {
.f16_type => .zig_f16,
.f32_type => .zig_f32,
.f64_type => .zig_f64,
.f80_type => .zig_f80,
.f128_type => .zig_f128,
.c_longdouble_type => .zig_c_longdouble,
else => unreachable,
}),