Skip to content

Commit

Permalink
cranelift: fix broken selinux-fix refactor (bytecodealliance#4001)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrmaxmeier authored Apr 8, 2022
1 parent f62199d commit 1bf0c8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cranelift/jit/src/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ impl PtrLen {
MmapMut::map_anon(alloc_size).map(|mut mmap| {
// The order here is important; we assign the pointer first to get
// around compile time borrow errors.
Ok(Self {
Self {
ptr: mmap.as_mut_ptr(),
map: Some(mmap),
len: alloc_size,
})
}
})
}

Expand Down

0 comments on commit 1bf0c8c

Please sign in to comment.