Update
This commit is contained in:
parent
c0b972abfa
commit
b4545a4ad6
@ -113,7 +113,7 @@ pub fn get_vtable_slot(
|
||||
ptr_size,
|
||||
self.tcx.data_layout.pointer_align.abi,
|
||||
)?.expect("cannot be a ZST");
|
||||
let fn_ptr = self.memory.get(vtable_slot.alloc_id)?
|
||||
let fn_ptr = self.memory.get_raw(vtable_slot.alloc_id)?
|
||||
.read_ptr_sized(self, vtable_slot)?.not_undef()?;
|
||||
Ok(self.memory.get_fn(fn_ptr)?)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user