1
Fork 0

i686-windows: pass arguments with requested alignment > 4 indirectly

This commit is contained in:
Erik Desjardins 2023-05-20 16:11:09 -04:00
parent 7089321c6d
commit ed317e4a47
5 changed files with 48 additions and 5 deletions

View file

@ -1104,6 +1104,15 @@ where
fn is_unit(this: TyAndLayout<'tcx>) -> bool {
matches!(this.ty.kind(), ty::Tuple(list) if list.len() == 0)
}
fn repr_options(this: TyAndLayout<'tcx>) -> ReprOptions {
match *this.ty.kind() {
ty::Adt(def, ..) => def.repr(),
_ => {
bug!("TyAndLayout::repr_options({:?}): not applicable", this)
}
}
}
}
/// Calculates whether a function's ABI can unwind or not.