Browse Source

cranelift: Only enable winch calling convention for x64 (#8234)

* cranelift: Only enable winch calling convention for x64

This commit is a follow up to https://github.com/bytecodealliance/wasmtime/pull/8198; it ensures ensures that the Winch calling convention is only allowed  when the architecture is x64.

* Update comment
pull/8236/head
Saúl Cabrera 8 months ago
committed by GitHub
parent
commit
5715ff96f1
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 7
      cranelift/fuzzgen/src/cranelift_arbitrary.rs

7
cranelift/fuzzgen/src/cranelift_arbitrary.rs

@ -64,11 +64,8 @@ impl<'a> CraneliftArbitrary for &mut Unstructured<'a> {
allowed_callconvs.push(CallConv::Tail);
}
// The winch calling convention is supposed to work on x64 and aarch64
if matches!(
architecture,
Architecture::X86_64 | Architecture::Aarch64(_)
) {
// The winch calling convention is supposed to work on x64.
if matches!(architecture, Architecture::X86_64) {
allowed_callconvs.push(CallConv::Winch);
}

Loading…
Cancel
Save