1
Fork 0

the unadjusted ABI needs to pass aggregates by-value

This commit is contained in:
Ralf Jung 2023-11-21 10:15:59 +01:00
parent 9a66e4471f
commit a06f3556aa
2 changed files with 30 additions and 6 deletions

View file

@ -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,