Turn ArgAbi::pad into a bool.

Because it's only ever set to `None` or `Some(Reg::i32())`.
This commit is contained in:
Nicholas Nethercote 2022-08-25 19:18:01 +10:00 committed by Antoni Boucher
parent 3c2d43265c
commit 8ebade29d6

View File

@ -126,8 +126,8 @@ impl<'gcc, 'tcx> FnAbiGccExt<'gcc, 'tcx> for FnAbi<'tcx, Ty<'tcx>> {
for arg in self.args.iter() { for arg in self.args.iter() {
// add padding // add padding
if let Some(ty) = arg.pad { if arg.pad_i32 {
argument_tys.push(ty.gcc_type(cx)); argument_tys.push(Reg::i32().gcc_type(cx));
} }
let arg_ty = match arg.mode { let arg_ty = match arg.mode {