]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_codegen_cranelift/src/main_shim.rs
Merge commit '03f01bbe901d60b71cf2c5ec766aef5e532ab79d' into update_cg_clif-2020...
[rust.git] / compiler / rustc_codegen_cranelift / src / main_shim.rs
index db34d89fe2be717c5ce9ef1a2965ee10753aa5c9..10f515e38ead279f1a080d3b94511e10fe10a4f6 100644 (file)
@@ -76,7 +76,7 @@ fn create_entry_fn(
             .unwrap();
 
         let mut ctx = Context::new();
-        ctx.func = Function::with_name_signature(ExternalName::user(0, 0), cmain_sig.clone());
+        ctx.func = Function::with_name_signature(ExternalName::user(0, 0), cmain_sig);
         {
             let mut func_ctx = FunctionBuilderContext::new();
             let mut bcx = FunctionBuilder::new(&mut ctx.func, &mut func_ctx);