Use copy_op_transmute
This commit is contained in:
parent
1ce6e6a999
commit
9e6f38ab0d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user