mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
Turn ArgAbi::pad
into a bool
.
Because it's only ever set to `None` or `Some(Reg::i32())`.
This commit is contained in:
parent
3c2d43265c
commit
8ebade29d6
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user