Skip to content

Commit

Permalink
Account for #[link_name] intrinsics shims
Browse files Browse the repository at this point in the history
saethlin committed Mar 19, 2024
1 parent 5f4f252 commit 82717ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_monomorphize/src/lib.rs
Original file line number Diff line number Diff line change
@@ -63,6 +63,7 @@ pub fn is_call_from_compiler_builtins_to_upstream_monomorphization<'tcx>(
) -> bool {
!instance.def_id().is_local()
&& tcx.is_compiler_builtins(LOCAL_CRATE)
&& tcx.codegen_fn_attrs(instance.def_id()).link_name.is_none()
&& !should_codegen_locally(tcx, &instance)
}

0 comments on commit 82717ab

Please sign in to comment.