Trying to fix issues

This commit is contained in:
Syrus
2020-07-07 17:05:30 -07:00
parent e5723fb3f8
commit 38459698d1
2 changed files with 3 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ use wasmer_compiler::{
TrapInformation,
};
use wasmer_runtime::{
MemoryStyle, MemoryStyle, ModuleInfo, TableStyle, TrapCode, VMBuiltinFunctionIndex, VMOffsets,
MemoryStyle, ModuleInfo, TableStyle, TrapCode, VMBuiltinFunctionIndex, VMOffsets,
};
/// The singlepass per-function code generator.
@@ -1228,7 +1228,7 @@ impl<'a> FuncGen<'a> {
) -> Result<(), CodegenError> {
let need_check = match self.memory_styles[MemoryIndex::new(0)] {
MemoryStyle::Static { .. } => false,
MemoryStyle::Dynamic => true,
MemoryStyle::Dynamic { .. } => true,
};
let tmp_addr = self.machine.acquire_temp_gpr().unwrap();