compiler: Parse p- specs in datalayout string, allow definition of custom default data address space
This commit is contained in:
committed by
Edoardo Marangoni
parent
733b47ea4b
commit
93f1201c06
@@ -443,7 +443,7 @@ fn define_all_allocs(tcx: TyCtxt<'_>, module: &mut dyn Module, cx: &mut Constant
|
||||
let addend = {
|
||||
let endianness = tcx.data_layout.endian;
|
||||
let offset = offset.bytes() as usize;
|
||||
let ptr_size = tcx.data_layout.pointer_size;
|
||||
let ptr_size = tcx.data_layout.pointer_size();
|
||||
let bytes = &alloc.inspect_with_uninit_and_ptr_outside_interpreter(
|
||||
offset..offset + ptr_size.bytes() as usize,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user