mirror of
https://github.com/fluencelabs/wasmer
synced 2025-03-28 05:21:04 +00:00
change func_index offset by number of imported funcs
This commit is contained in:
parent
1ac689c70b
commit
9e601c42f9
@ -530,7 +530,10 @@ impl<'module, 'isa, 'data> ModuleEnvironment<'data> for ModuleEnv<'module, 'isa>
|
|||||||
.special_param(ir::ArgumentPurpose::VMContext)
|
.special_param(ir::ArgumentPurpose::VMContext)
|
||||||
.expect("missing vmctx parameter");
|
.expect("missing vmctx parameter");
|
||||||
|
|
||||||
let func_index = pos.ins().iconst(ir::types::I32, func_index.index() as i64);
|
let func_index = pos.ins().iconst(
|
||||||
|
ir::types::I32,
|
||||||
|
func_index.index() as i64 + self.module.info.imported_functions.len() as i64,
|
||||||
|
);
|
||||||
|
|
||||||
pos.ins().call(start_debug, &[vmctx, func_index]);
|
pos.ins().call(start_debug, &[vmctx, func_index]);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user