mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-08 21:58:20 +00:00
Fixed comments
This commit is contained in:
@@ -2282,8 +2282,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
(body_ptr, vmctx_ptr)
|
||||
};
|
||||
|
||||
let params: Vec<_> = std::iter::repeat(callee_vmctx)
|
||||
.take(1)
|
||||
let params: Vec<_> = std::iter::once(callee_vmctx)
|
||||
.chain(
|
||||
self.state
|
||||
.peekn_extra(func_type.params().len())?
|
||||
@@ -2552,8 +2551,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
|
||||
let pushed_args = self.state.popn_save_extra(func_type.params().len())?;
|
||||
|
||||
let args: Vec<_> = std::iter::repeat(ctx_ptr)
|
||||
.take(1)
|
||||
let args: Vec<_> = std::iter::once(ctx_ptr)
|
||||
.chain(pushed_args.into_iter().enumerate().map(|(i, (v, info))| {
|
||||
match func_type.params()[i] {
|
||||
Type::F32 => self.builder.build_bitcast(
|
||||
|
||||
@@ -1041,8 +1041,7 @@ pub fn func_type_to_llvm<'ctx>(
|
||||
.params()
|
||||
.iter()
|
||||
.map(|&ty| type_to_llvm(intrinsics, ty));
|
||||
let param_types: Vec<_> = std::iter::repeat(intrinsics.ctx_ptr_ty.as_basic_type_enum())
|
||||
.take(1)
|
||||
let param_types: Vec<_> = std::iter::once(intrinsics.ctx_ptr_ty.as_basic_type_enum())
|
||||
.chain(user_param_types)
|
||||
.collect();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user