Skip to content

Commit 5a38c32

Browse files
authored
Merge pull request #4354 from RalfJung/before_stack_pop
fix comment in before_stack_pop
2 parents 0fdc38e + 6b8a922 commit 5a38c32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/miri/src/machine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1637,7 +1637,7 @@ impl<'tcx> Machine<'tcx> for MiriMachine<'tcx> {
16371637
fn before_stack_pop(ecx: &mut InterpCx<'tcx, Self>) -> InterpResult<'tcx> {
16381638
let frame = ecx.frame();
16391639
// We want this *before* the return value copy, because the return place itself is protected
1640-
// until we do `end_call` here.
1640+
// until we do `on_stack_pop` here, and we need to un-protect it to copy the return value.
16411641
if ecx.machine.borrow_tracker.is_some() {
16421642
ecx.on_stack_pop(frame)?;
16431643
}

0 commit comments

Comments
 (0)