Skip to content

Commit ada864f

Browse files
committed
Pass the correct size to the AllocRange for log_creation
1 parent 98c8c8f commit ada864f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stacked_borrows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ trait EvalContextPrivExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
731731
alloc_history.log_creation(
732732
Some(orig_tag),
733733
new_tag,
734-
alloc_range(base_offset, base_offset + size),
734+
alloc_range(base_offset, size),
735735
&this.machine.threads,
736736
);
737737
if protect {

0 commit comments

Comments
 (0)