Address concerns in pullrequests.

This commit is contained in:
Carlo Kok
2020-06-15 20:46:04 +02:00
parent 38531b8f42
commit 0b613caad1
6 changed files with 21 additions and 15 deletions

View File

@@ -361,11 +361,9 @@ impl<'simple_jit_backend> Backend for SimpleJITBackend {
ref data_decls,
ref function_relocs,
ref data_relocs,
section: ref datasection,
custom_segment_section: _,
} = data.description();
assert!(datasection.is_none(), "Custom sections not supported");
let size = init.size();
let storage = if writable {
self.memory