Skip to content

Commit

Permalink
Apply CPU attributes to __rust_try
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu committed Mar 2, 2020
1 parent 61b67d0 commit d73813a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librustc_codegen_llvm/intrinsic.rs
Expand Up @@ -1106,6 +1106,8 @@ fn gen_fn<'ll, 'tcx>(
));
let fn_abi = FnAbi::of_fn_ptr(cx, rust_fn_sig, &[]);
let llfn = cx.declare_fn(name, &fn_abi);
cx.set_frame_pointer_elimination(llfn);
cx.apply_target_cpu_attr(llfn);
// FIXME(eddyb) find a nicer way to do this.
unsafe { llvm::LLVMRustSetLinkage(llfn, llvm::Linkage::InternalLinkage) };
let bx = Builder::new_block(cx, llfn, "entry-block");
Expand Down

0 comments on commit d73813a

Please sign in to comment.