Pass the correct size to the AllocRange for log_creation

This commit is contained in:
Ben Kimock 2022-05-19 09:29:08 -04:00
parent 98c8c8f9b5
commit ada864f387

View File

@ -731,7 +731,7 @@ trait EvalContextPrivExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
alloc_history.log_creation(
Some(orig_tag),
new_tag,
alloc_range(base_offset, base_offset + size),
alloc_range(base_offset, size),
&this.machine.threads,
);
if protect {