interpret: pass Size and Align to before_memory_deallocation
This commit is contained in:
parent
79d246112d
commit
16e869a678
7 changed files with 18 additions and 15 deletions
|
@ -433,7 +433,8 @@ pub trait Machine<'mir, 'tcx: 'mir>: Sized {
|
|||
_machine: &mut Self,
|
||||
_alloc_extra: &mut Self::AllocExtra,
|
||||
_prov: (AllocId, Self::ProvenanceExtra),
|
||||
_range: AllocRange,
|
||||
_size: Size,
|
||||
_align: Align,
|
||||
) -> InterpResult<'tcx> {
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
@ -345,7 +345,8 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
|
|||
&mut self.machine,
|
||||
&mut alloc.extra,
|
||||
(alloc_id, prov),
|
||||
alloc_range(Size::ZERO, size),
|
||||
size,
|
||||
alloc.align,
|
||||
)?;
|
||||
|
||||
// Don't forget to remember size and align of this now-dead allocation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue