interpret: pass MemoryKind to before_memory_deallocation
This commit is contained in:
parent
63f70b3d10
commit
18bfca50f1
10 changed files with 21 additions and 18 deletions
|
@ -427,6 +427,7 @@ pub trait Machine<'mir, 'tcx: 'mir>: Sized {
|
|||
_prov: (AllocId, Self::ProvenanceExtra),
|
||||
_size: Size,
|
||||
_align: Align,
|
||||
_kind: MemoryKind<Self::MemoryKind>,
|
||||
) -> InterpResult<'tcx> {
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
@ -355,6 +355,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
|
|||
(alloc_id, prov),
|
||||
size,
|
||||
alloc.align,
|
||||
kind,
|
||||
)?;
|
||||
|
||||
// Don't forget to remember size and align of this now-dead allocation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue