1
Fork 0

miri: avoid making a full copy of all new allocations

This commit is contained in:
Ralf Jung 2024-05-27 23:28:32 +02:00
parent b0f8618938
commit 869306418d
8 changed files with 92 additions and 85 deletions

View file

@ -819,7 +819,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
tracing_span: SpanGuard::new(),
extra: (),
};
let frame = M::init_frame_extra(self, pre_frame)?;
let frame = M::init_frame(self, pre_frame)?;
self.stack_mut().push(frame);
// Make sure all the constants required by this frame evaluate successfully (post-monomorphization check).