Skip to content

Commit 679a19e

Browse files
tiifRalfJung
andauthored
Update src/tools/miri/src/shims/windows/foreign_items.rs
Co-authored-by: Ralf Jung <[email protected]>
1 parent 36f9c6f commit 679a19e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tools/miri/src/shims/windows/foreign_items.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
9494

9595
// According to
9696
// https://github.com/rust-lang/rust/blob/fb00adbdb69266f10df95a4527b767b0ad35ea48/compiler/rustc_target/src/spec/mod.rs#L2766-L2768,
97-
// x86 Windows needs to use different kind of ABI.
97+
// x86-32 Windows uses a different calling convention than other Windows targets
98+
// for the "system" ABI.
9899
let exp_abi= if this.tcx.sess.target.arch == "x86" { Conv::X86Stdcall } else { Conv::C };
99100

100101
// See `fn emulate_foreign_item_inner` in `shims/foreign_items.rs` for the general pattern.

0 commit comments

Comments
 (0)