rustc_codegen_llvm: use threadlocal.address intrinsic to access TLS

This commit is contained in:
joboet
2025-04-04 19:47:44 +02:00
parent b8ff7b682e
commit e4d9b06cc8
3 changed files with 20 additions and 9 deletions

View File

@@ -1198,6 +1198,7 @@ impl<'ll> CodegenCx<'ll, '_> {
}
ifn!("llvm.ptrmask", fn(ptr, t_isize) -> ptr);
ifn!("llvm.threadlocal.address", fn(ptr) -> ptr);
None
}