debuginfo: Generators use u32 as discriminant type repr

This commit is contained in:
Tomasz Miąsko 2020-03-05 00:00:00 +00:00
parent e54a16cffc
commit ebd941b890

View File

@ -1802,9 +1802,9 @@ fn prepare_enum_metadata(
DIB(cx), DIB(cx),
name.as_ptr().cast(), name.as_ptr().cast(),
name.len(), name.len(),
// FIXME: what if enumeration has i128 discriminant? // Generators use u32 as discriminant type.
variant_index.as_usize() as i64, variant_index.as_u32().into(),
false, // FIXME: IsUnsigned. true, // IsUnsigned
)) ))
} }
}) })