Update src/librustc_mir/interpret/memory.rs
Co-Authored-By: Ralf Jung <post@ralfj.de>
This commit is contained in:
parent
6e04ca7fb6
commit
0cd71678e1
1 changed files with 1 additions and 1 deletions
|
@ -555,7 +555,7 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> Memory<'mir, 'tcx, M> {
|
|||
},
|
||||
Some(GlobalAlloc::Memory(alloc)) =>
|
||||
// Need to duplicate the logic here, because the global allocations have
|
||||
// different associated types than the interpreter-local ones
|
||||
// different associated types than the interpreter-local ones.
|
||||
Ok((Size::from_bytes(alloc.bytes.len() as u64), alloc.align)),
|
||||
Some(GlobalAlloc::Function(_)) => {
|
||||
if let AllocCheck::Dereferencable = liveness {
|
||||
|
|
Loading…
Add table
Reference in a new issue