the unadjusted ABI needs to pass aggregates by-value
This commit is contained in:
parent
9a66e4471f
commit
a06f3556aa
2 changed files with 30 additions and 6 deletions
|
@ -382,6 +382,7 @@ impl HomogeneousAggregate {
|
|||
}
|
||||
|
||||
impl<'a, Ty> TyAndLayout<'a, Ty> {
|
||||
/// Returns `true` if this is an aggregate type (including a ScalarPair!)
|
||||
fn is_aggregate(&self) -> bool {
|
||||
match self.abi {
|
||||
Abi::Uninhabited | Abi::Scalar(_) | Abi::Vector { .. } => false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue