autodoc: Handle more InternPool.Index types properly in Autodoc

This commit is contained in:
Krzysztof Wolicki
2023-06-18 14:07:09 +00:00
parent 329a585fbe
commit e7fd70a951

View File

@@ -141,10 +141,12 @@ pub fn generateZirData(self: *Autodoc) !void {
.i8_type,
.u16_type,
.i16_type,
.u29_type,
.u32_type,
.i32_type,
.u64_type,
.i64_type,
.u80_type,
.u128_type,
.i128_type,
.usize_type,
@@ -157,14 +159,15 @@ pub fn generateZirData(self: *Autodoc) !void {
.c_ulong_type,
.c_longlong_type,
.c_ulonglong_type,
.c_longdouble_type,
=> .{
.Int = .{ .name = try tmpbuf.toOwnedSlice() },
},
.f16_type,
.f32_type,
.f64_type,
.f80_type,
.f128_type,
.c_longdouble_type,
=> .{
.Float = .{ .name = try tmpbuf.toOwnedSlice() },
},