Skip to content

Commit 82717ab

Browse files
committed
Account for #[link_name] intrinsics shims
1 parent 5f4f252 commit 82717ab

File tree

1 file changed

+1
-0
lines changed
  • compiler/rustc_monomorphize/src

1 file changed

+1
-0
lines changed

compiler/rustc_monomorphize/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ pub fn is_call_from_compiler_builtins_to_upstream_monomorphization<'tcx>(
6363
) -> bool {
6464
!instance.def_id().is_local()
6565
&& tcx.is_compiler_builtins(LOCAL_CRATE)
66+
&& tcx.codegen_fn_attrs(instance.def_id()).link_name.is_none()
6667
&& !should_codegen_locally(tcx, &instance)
6768
}
6869

0 commit comments

Comments
 (0)