[SimpleJIT] Fix allocation of readonly memory.

Fixes #457.
This commit is contained in:
Dan Gohman
2018-08-16 18:14:58 -07:00
parent fb1ac22c21
commit ae1a17f6b3

View File

@@ -207,7 +207,7 @@ impl<'simple_jit_backend> Backend for SimpleJITBackend {
let size = init.size();
let storage = match writable {
Writability::Readonly => self
.writable_memory
.readonly_memory
.allocate(size)
.expect("TODO: handle OOM etc."),
Writability::Writable => self