nlewycky
2020-05-13 13:18:27 -07:00
committed by GitHub
parent 30a86db05b
commit ea90cadaf1

View File

@ -2553,8 +2553,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(2)
let args: Vec<_> = std::iter::repeat(ctx_ptr).take(2)
.chain(pushed_args.into_iter().enumerate().map(|(i, (v, info))| {
match func_type.params()[i] {
Type::F32 => builder.build_bitcast(