extend comments around PassMode::Direct
This commit is contained in:
parent
e66913f8fe
commit
c981026195
3 changed files with 46 additions and 2 deletions
|
@ -520,6 +520,8 @@ fn fn_abi_adjust_for_abi<'tcx>(
|
|||
|
||||
_ => return,
|
||||
}
|
||||
// `Aggregate` ABI must be adjusted to ensure that ABI-compatible Rust types are passed
|
||||
// the same way.
|
||||
|
||||
let size = arg.layout.size;
|
||||
if arg.layout.is_unsized() || size > Pointer(AddressSpace::DATA).size(cx) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue