mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 06:15:33 +00:00
Fixed return_mode
This commit is contained in:
parent
91875fef06
commit
f3cbfc0e09
@ -364,7 +364,6 @@ impl<'environment> FuncEnvironmentTrait for FuncEnvironment<'environment> {
|
||||
assert_eq!(table_index.index(), 0, "Only one WebAssembly memory supported");
|
||||
let instance = func.create_global_value(ir::GlobalValueData::VMContext);
|
||||
let ptr_size = native_pointer_size();
|
||||
|
||||
// Load value at (instance + TABLES_OFFSET)
|
||||
// which is the address of data_pointer.tables
|
||||
let base = func.create_global_value(ir::GlobalValueData::Load {
|
||||
@ -660,7 +659,8 @@ impl<'environment> FuncEnvironmentTrait for FuncEnvironment<'environment> {
|
||||
}
|
||||
|
||||
fn return_mode(&self) -> ReturnMode {
|
||||
ReturnMode::FallthroughReturn
|
||||
ReturnMode::NormalReturns
|
||||
// ReturnMode::FallthroughReturn
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user