Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de>
This commit is contained in:
Ralf Jung 2022-06-27 08:35:25 -04:00
parent b479f092a8
commit d9e7a3ae82

View File

@ -215,7 +215,7 @@ pub fn rel_ptr_to_addr(ecx: &MiriEvalContext<'mir, 'tcx>, ptr: Pointer<AllocId>)
dl.overflowing_offset(base_addr, offset.bytes()).0
}
/// Whena pointer is used for a memory access, this computes where in which allocation the
/// When a pointer is used for a memory access, this computes where in which allocation the
/// access is going.
pub fn abs_ptr_to_rel(
ecx: &MiriEvalContext<'mir, 'tcx>,