Skip to content

Commit

Permalink
Dump return_place upon returning
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-schievink committed Apr 20, 2020
1 parent 34ed891 commit 0fda0fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc_mir/interpret/eval_context.rs
Expand Up @@ -729,6 +729,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
if let Some(return_place) = frame.return_place {
let op = self.access_local(&frame, mir::RETURN_PLACE, None)?;
self.copy_op(op, return_place)?;
self.dump_place(*return_place);
} else {
throw_ub!(Unreachable);
}
Expand Down

0 comments on commit 0fda0fd

Please sign in to comment.