We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ee6e60 commit 1614743Copy full SHA for 1614743
src/tools/miri/src/machine.rs
@@ -1248,7 +1248,7 @@ impl<'tcx> Machine<'tcx> for MiriMachine<'tcx> {
1248
// to give it some reserved memory space.
1249
let alloc = alloc.adjust_from_tcx(&ecx.tcx, |bytes, align| {
1250
assert_eq!(alloc.align, align);
1251
- let kind = MemoryKind::Machine(kind);
+ let kind = Self::GLOBAL_KIND.unwrap().into();
1252
// TODO: is this unwrap warranted?
1253
let mut alloc_bytes = ecx.take_prepared_alloc_bytes(id, kind).unwrap();
1254
assert_eq!(alloc_bytes.len(), bytes.len());
0 commit comments