diff --git a/src/abi/mod.rs b/src/abi/mod.rs index 1b67f3d6f15..0a6d54c73b3 100644 --- a/src/abi/mod.rs +++ b/src/abi/mod.rs @@ -91,7 +91,8 @@ fn clif_sig_from_fn_sig<'tcx>( }; let (call_conv, inputs, output): (CallConv, Vec>, Ty<'tcx>) = match abi { Abi::Rust => (CallConv::triple_default(triple), sig.inputs().to_vec(), sig.output()), - Abi::C | Abi::Unadjusted | Abi::SysV64 => (CallConv::triple_default(triple), sig.inputs().to_vec(), sig.output()), + Abi::C | Abi::Unadjusted => (CallConv::triple_default(triple), sig.inputs().to_vec(), sig.output()), + Abi::SysV64 => (CallConv::SystemV, sig.inputs().to_vec(), sig.output()), Abi::RustCall => { assert_eq!(sig.inputs().len(), 2); let extra_args = match sig.inputs().last().unwrap().kind {