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 36f9c6f commit 679a19eCopy full SHA for 679a19e
src/tools/miri/src/shims/windows/foreign_items.rs
@@ -94,7 +94,8 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
94
95
// According to
96
// 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.
+ // x86-32 Windows uses a different calling convention than other Windows targets
98
+ // for the "system" ABI.
99
let exp_abi= if this.tcx.sess.target.arch == "x86" { Conv::X86Stdcall } else { Conv::C };
100
101
// See `fn emulate_foreign_item_inner` in `shims/foreign_items.rs` for the general pattern.
0 commit comments