chore(compiler-cranelift) It's cheaper to copy TargetFrontendConfig rather than ref.

Learn more at https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref.
This commit is contained in:
Ivan Enderlin
2020-06-09 14:39:06 +02:00
parent 05261d4094
commit ce2379622a
6 changed files with 8 additions and 8 deletions

View File

@@ -26,7 +26,7 @@ pub fn make_trampoline_dynamic_function(
) -> Result<FunctionBody, CompileError> {
let pointer_type = isa.pointer_type();
let frontend_config = isa.frontend_config();
let signature = signature_to_cranelift_ir(func_type, &frontend_config);
let signature = signature_to_cranelift_ir(func_type, frontend_config);
let mut stub_sig = ir::Signature::new(frontend_config.default_call_conv);
// Add the caller `vmctx` parameter.
stub_sig.params.push(ir::AbiParam::special(