about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/codegen_attrs.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-07-28 07:11:11 +0000
committerGitHub <noreply@github.com>2025-07-28 07:11:11 +0000
commitfb464108acad905de43b03dd61c5a69ca509a73d (patch)
treeaa6ef95360aa10acfbd64d92c17755baa0796f9c /compiler/rustc_codegen_ssa/src/codegen_attrs.rs
parent0570fb420f3a37a1e9af69dcf52b1030bdfb6ad6 (diff)
parentdea3e131d53eccd46703a304d942778b5c6edef6 (diff)
downloadrust-fb464108acad905de43b03dd61c5a69ca509a73d.tar.gz
rust-fb464108acad905de43b03dd61c5a69ca509a73d.zip
Merge pull request #4500 from RalfJung/rustup
Rustup
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/codegen_attrs.rs')
-rw-r--r--compiler/rustc_codegen_ssa/src/codegen_attrs.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/compiler/rustc_codegen_ssa/src/codegen_attrs.rs b/compiler/rustc_codegen_ssa/src/codegen_attrs.rs
index dd49db26689..3f456fa115a 100644
--- a/compiler/rustc_codegen_ssa/src/codegen_attrs.rs
+++ b/compiler/rustc_codegen_ssa/src/codegen_attrs.rs
@@ -511,15 +511,6 @@ fn codegen_fn_attrs(tcx: TyCtxt<'_>, did: LocalDefId) -> CodegenFnAttrs {
         err.emit();
     }
 
-    // Any linkage to LLVM intrinsics for now forcibly marks them all as never
-    // unwinds since LLVM sometimes can't handle codegen which `invoke`s
-    // intrinsic functions.
-    if let Some(name) = &codegen_fn_attrs.link_name
-        && name.as_str().starts_with("llvm.")
-    {
-        codegen_fn_attrs.flags |= CodegenFnAttrFlags::NEVER_UNWIND;
-    }
-
     if let Some(features) = check_tied_features(
         tcx.sess,
         &codegen_fn_attrs