debuginfo: Generators use u32 as discriminant type repr
This commit is contained in:
parent
e54a16cffc
commit
ebd941b890
@ -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
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user