Skip to content

Commit 0b211be

Browse files
committed
Use SystemV abi for extern "sysv64" even on Windows
1 parent 26e7bc1 commit 0b211be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/abi/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ fn clif_sig_from_fn_sig<'tcx>(
9191
};
9292
let (call_conv, inputs, output): (CallConv, Vec<Ty<'tcx>>, Ty<'tcx>) = match abi {
9393
Abi::Rust => (CallConv::triple_default(triple), sig.inputs().to_vec(), sig.output()),
94-
Abi::C | Abi::Unadjusted | Abi::SysV64 => (CallConv::triple_default(triple), sig.inputs().to_vec(), sig.output()),
94+
Abi::C | Abi::Unadjusted => (CallConv::triple_default(triple), sig.inputs().to_vec(), sig.output()),
95+
Abi::SysV64 => (CallConv::SystemV, sig.inputs().to_vec(), sig.output()),
9596
Abi::RustCall => {
9697
assert_eq!(sig.inputs().len(), 2);
9798
let extra_args = match sig.inputs().last().unwrap().kind {

0 commit comments

Comments
 (0)