diff --git a/lib/compiler-llvm/src/translator/code.rs b/lib/compiler-llvm/src/translator/code.rs index 48d283033..d1aa6c004 100644 --- a/lib/compiler-llvm/src/translator/code.rs +++ b/lib/compiler-llvm/src/translator/code.rs @@ -2335,7 +2335,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> { let vmctx_ptr_ptr = builder .build_struct_gep( vmfunction_import_ptr, - intrinsics.vmfunction_import_body_element, + intrinsics.vmfunction_import_vmctx_element, "", ) .unwrap();