Auto merge of #81388 - bjorn3:wasm_bindgen_fix, r=nikomatsakis
Fix abi for wasm-bindgen Hopefully fixes https://github.com/rust-lang/rust/issues/81386. `@alexcrichton` can you confirm this fixes wasm-bindgen? r? `@alexcrichton`
This commit is contained in:
commit
b05fd2a15d
2 changed files with 5 additions and 6 deletions
|
@ -32,7 +32,7 @@ pub enum PassMode {
|
|||
Ignore,
|
||||
/// Pass the argument directly.
|
||||
///
|
||||
/// The argument has a layout abi of `Scalar` or `Vector`.
|
||||
/// The argument has a layout abi of `Scalar`, `Vector` or in rare cases `Aggregate`.
|
||||
Direct(ArgAttributes),
|
||||
/// Pass a pair's elements directly in two arguments.
|
||||
///
|
||||
|
@ -453,7 +453,7 @@ impl<'a, Ty> ArgAbi<'a, Ty> {
|
|||
scalar_attrs(&layout, b, a.value.size(cx).align_to(b.value.align(cx).abi)),
|
||||
),
|
||||
Abi::Vector { .. } => PassMode::Direct(ArgAttributes::new()),
|
||||
Abi::Aggregate { .. } => Self::indirect_pass_mode(&layout),
|
||||
Abi::Aggregate { .. } => PassMode::Direct(ArgAttributes::new()),
|
||||
};
|
||||
ArgAbi { layout, pad: None, mode }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue