From 0d89c6a2d44b78d052280d7faecfcb79e6f3d4a1 Mon Sep 17 00:00:00 2001 From: John Kåre Alsaker Date: Fri, 3 Feb 2023 09:04:12 +0100 Subject: Support TLS access into dylibs on Windows --- compiler/rustc_mir_transform/src/inline/cycle.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/rustc_mir_transform/src/inline') diff --git a/compiler/rustc_mir_transform/src/inline/cycle.rs b/compiler/rustc_mir_transform/src/inline/cycle.rs index faf404c7771..8aa3c23d019 100644 --- a/compiler/rustc_mir_transform/src/inline/cycle.rs +++ b/compiler/rustc_mir_transform/src/inline/cycle.rs @@ -83,6 +83,7 @@ pub(crate) fn mir_callgraph_reachable<'tcx>( | InstanceDef::ReifyShim(_) | InstanceDef::FnPtrShim(..) | InstanceDef::ClosureOnceShim { .. } + | InstanceDef::ThreadLocalShim { .. } | InstanceDef::CloneShim(..) => {} // This shim does not call any other functions, thus there can be no recursion. -- cgit 1.4.1-3-g733a5