We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b49a1f7 commit f47ad44Copy full SHA for f47ad44
src/abi/mod.rs
@@ -788,7 +788,7 @@ pub(crate) fn codegen_drop<'tcx>(
788
pub(crate) fn lib_call_arg_param(tcx: TyCtxt<'_>, ty: Type, is_signed: bool) -> AbiParam {
789
let param = AbiParam::new(ty);
790
if ty.is_int() && u64::from(ty.bits()) < tcx.data_layout.pointer_size().bits() {
791
- match (tcx.sess.target.arch, tcx.sess.target.vendor.as_ref()) {
+ match (&tcx.sess.target.arch, tcx.sess.target.vendor.as_ref()) {
792
(Arch::X86_64, _) | (Arch::AArch64, "apple") => match (ty, is_signed) {
793
(types::I8 | types::I16, true) => param.sext(),
794
(types::I8 | types::I16, false) => param.uext(),
0 commit comments