Skip to content

Commit d83636d

Browse files
committed
Turn ArgAbi::pad into a bool.
Because it's only ever set to `None` or `Some(Reg::i32())`.
1 parent 5a69929 commit d83636d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/abi.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ impl<'gcc, 'tcx> FnAbiGccExt<'gcc, 'tcx> for FnAbi<'tcx, Ty<'tcx>> {
126126

127127
for arg in self.args.iter() {
128128
// add padding
129-
if let Some(ty) = arg.pad {
130-
argument_tys.push(ty.gcc_type(cx));
129+
if arg.pad_i32 {
130+
argument_tys.push(Reg::i32().gcc_type(cx));
131131
}
132132

133133
let arg_ty = match arg.mode {

0 commit comments

Comments
 (0)