Skip to content

Commit

Permalink
Use copy_op_transmute
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-schievink committed Apr 20, 2020
1 parent 1ce6e6a commit 9e6f38a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_mir/interpret/eval_context.rs
Expand Up @@ -728,7 +728,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
// Copy the return value to the caller's stack frame.
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.copy_op_transmute(op, return_place)?;
self.dump_place(*return_place);
} else {
throw_ub!(Unreachable);
Expand Down

0 comments on commit 9e6f38a

Please sign in to comment.