This commit is contained in:
Aaron Hill 2019-11-09 11:02:15 -05:00
parent c0b972abfa
commit b4545a4ad6
No known key found for this signature in database
GPG Key ID: B4087E510E98B164

View File

@ -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)?)
}