Skip to content

Commit e2acc6c

Browse files
committed
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.
1 parent b061932 commit e2acc6c

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_ty_utils/src

1 file changed

+1
-1
lines changed

compiler/rustc_ty_utils/src/abi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fn fn_sig_for_fn_abi<'tcx>(
3939
tcx.thread_local_ptr_ty(instance.def_id()),
4040
false,
4141
hir::Safety::Safe,
42-
rustc_abi::ExternAbi::Unadjusted,
42+
rustc_abi::ExternAbi::Rust,
4343
);
4444
}
4545

0 commit comments

Comments
 (0)