diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2020-11-03 11:00:04 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2020-11-03 11:00:04 +0100 |
| commit | 285c7c66dca6756a77def01b60bf03edc26abb9c (patch) | |
| tree | f766b683ac06d5d9cc912e1d59a4875693403e3f /src/allocator.rs | |
| parent | 793d26047f994e23415f8f6bb5686ff25d3dda92 (diff) | |
| download | rust-285c7c66dca6756a77def01b60bf03edc26abb9c.tar.gz rust-285c7c66dca6756a77def01b60bf03edc26abb9c.zip | |
Merge commit '03f01bbe901d60b71cf2c5ec766aef5e532ab79d' into update_cg_clif-2020-11-01
Diffstat (limited to 'src/allocator.rs')
| -rw-r--r-- | src/allocator.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/allocator.rs b/src/allocator.rs index 0735ad6f832..6c5916550ff 100644 --- a/src/allocator.rs +++ b/src/allocator.rs @@ -123,7 +123,7 @@ fn codegen_inner( .unwrap(); let mut ctx = Context::new(); - ctx.func = Function::with_name_signature(ExternalName::user(0, 0), sig.clone()); + ctx.func = Function::with_name_signature(ExternalName::user(0, 0), sig); { let mut func_ctx = FunctionBuilderContext::new(); let mut bcx = FunctionBuilder::new(&mut ctx.func, &mut func_ctx); @@ -131,7 +131,7 @@ fn codegen_inner( let block = bcx.create_block(); bcx.switch_to_block(block); let args = (&[usize_ty, usize_ty]) - .into_iter() + .iter() .map(|&ty| bcx.append_block_param(block, ty)) .collect::<Vec<Value>>(); |
