mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-22 21:21:33 +00:00
feat(clif-backend,singlepass-backend) Feed imported functions with FuncCtx.vmctx
.
This commit is contained in:
@ -776,7 +776,7 @@ impl FuncEnvironment for FunctionEnvironment {
|
||||
let imported_func_ctx_vmctx_addr =
|
||||
pos.func.create_global_value(ir::GlobalValueData::Load {
|
||||
base: imported_func_ctx_addr,
|
||||
offset: (0 as i32).into(),
|
||||
offset: (vm::FuncCtx::offset_vmctx() as i32).into(),
|
||||
global_type: ptr_type,
|
||||
readonly: true,
|
||||
});
|
||||
|
Reference in New Issue
Block a user