Rename InstanceDef -> InstanceKind
This commit is contained in:
@@ -50,7 +50,7 @@ pub(crate) fn codegen_tls_ref<'tcx>(
|
||||
) -> CValue<'tcx> {
|
||||
let tls_ptr = if !def_id.is_local() && fx.tcx.needs_thread_local_shim(def_id) {
|
||||
let instance = ty::Instance {
|
||||
def: ty::InstanceDef::ThreadLocalShim(def_id),
|
||||
def: ty::InstanceKind::ThreadLocalShim(def_id),
|
||||
args: ty::GenericArgs::empty(),
|
||||
};
|
||||
let func_ref = fx.get_function_ref(instance);
|
||||
|
||||
Reference in New Issue
Block a user