1
Fork 0

Support 128-bit enum variant in debuginfo codegen

This commit is contained in:
DonoughLiu 2023-06-10 03:21:39 +08:00
parent 397641f3bd
commit 204bfb6a8c
5 changed files with 12 additions and 9 deletions

View file

@ -168,6 +168,10 @@ impl<'ll, 'tcx> ConstMethods<'tcx> for CodegenCx<'ll, 'tcx> {
self.const_uint(self.type_i64(), i)
}
fn const_u128(&self, i: u128) -> &'ll Value {
self.const_uint_big(self.type_i128(), i)
}
fn const_usize(&self, i: u64) -> &'ll Value {
let bit_size = self.data_layout().pointer_size.bits();
if bit_size < 64 {