Skip to content

Commit a7836b6

Browse files
committed
Apply CPU attributes to __rust_try
1 parent 486e208 commit a7836b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustc_codegen_llvm/intrinsic.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1106,6 +1106,8 @@ fn gen_fn<'ll, 'tcx>(
11061106
));
11071107
let fn_abi = FnAbi::of_fn_ptr(cx, rust_fn_sig, &[]);
11081108
let llfn = cx.declare_fn(name, &fn_abi);
1109+
cx.set_frame_pointer_elimination(llfn);
1110+
cx.apply_target_cpu_attr(llfn);
11091111
// FIXME(eddyb) find a nicer way to do this.
11101112
unsafe { llvm::LLVMRustSetLinkage(llfn, llvm::Linkage::InternalLinkage) };
11111113
let bx = Builder::new_block(cx, llfn, "entry-block");

0 commit comments

Comments
 (0)