Skip to content

Commit f47ad44

Browse files
committed
rustc_target: allow unenumerated architectures
1 parent b49a1f7 commit f47ad44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/abi/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ pub(crate) fn codegen_drop<'tcx>(
788788
pub(crate) fn lib_call_arg_param(tcx: TyCtxt<'_>, ty: Type, is_signed: bool) -> AbiParam {
789789
let param = AbiParam::new(ty);
790790
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()) {
791+
match (&tcx.sess.target.arch, tcx.sess.target.vendor.as_ref()) {
792792
(Arch::X86_64, _) | (Arch::AArch64, "apple") => match (ty, is_signed) {
793793
(types::I8 | types::I16, true) => param.sext(),
794794
(types::I8 | types::I16, false) => param.uext(),

0 commit comments

Comments
 (0)