about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/abi.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/abi.rs b/src/abi.rs
index 87b730d29cd..3186b363e35 100644
--- a/src/abi.rs
+++ b/src/abi.rs
@@ -126,8 +126,8 @@ impl<'gcc, 'tcx> FnAbiGccExt<'gcc, 'tcx> for FnAbi<'tcx, Ty<'tcx>> {
 
         for arg in self.args.iter() {
             // add padding
-            if let Some(ty) = arg.pad {
-                argument_tys.push(ty.gcc_type(cx));
+            if arg.pad_i32 {
+                argument_tys.push(Reg::i32().gcc_type(cx));
             }
 
             let arg_ty = match arg.mode {