Extra assertions and fix for SimpleJit.

This commit is contained in:
Carlo Kok
2020-06-08 19:19:20 +02:00
parent 4ff01aa898
commit 04492983d2

View File

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