Merge pull request #16086 from der-teufel-programming/master

autodoc: Handle more InternPool.Index types properly in Autodoc
This commit is contained in:
Loris Cro 2023-06-18 16:21:16 +02:00 committed by GitHub
commit 3180a371e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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() },
},