diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-07-18 14:25:56 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-08-06 16:05:30 +0000 |
| commit | e2acc6c5f4474b3610ce9f1cde84ecb854a354a7 (patch) | |
| tree | 0ed8178d4f78dc8213e4bff0ae673d2616ae32be /compiler/rustc_ty_utils/src | |
| parent | b0619327ef6afb89492b2fe0bd86f987c39f6c25 (diff) | |
| download | rust-e2acc6c5f4474b3610ce9f1cde84ecb854a354a7.tar.gz rust-e2acc6c5f4474b3610ce9f1cde84ecb854a354a7.zip | |
Avoid using unadjusted ABI for the thread-local shim
This restricts the uses of the unadjusted ABI to LLVM intrinsics. The Rust ABI works fine for the thread-local shim as it always returns pointers directly like the backend expects.
Diffstat (limited to 'compiler/rustc_ty_utils/src')
| -rw-r--r-- | compiler/rustc_ty_utils/src/abi.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ty_utils/src/abi.rs b/compiler/rustc_ty_utils/src/abi.rs index a0b33371835..439d18a69d4 100644 --- a/compiler/rustc_ty_utils/src/abi.rs +++ b/compiler/rustc_ty_utils/src/abi.rs @@ -39,7 +39,7 @@ fn fn_sig_for_fn_abi<'tcx>( tcx.thread_local_ptr_ty(instance.def_id()), false, hir::Safety::Safe, - rustc_abi::ExternAbi::Unadjusted, + rustc_abi::ExternAbi::Rust, ); } |
