Change FnAbi::args to a boxed slice.

This commit is contained in:
Nicholas Nethercote 2022-08-25 19:08:04 +10:00 committed by Antoni Boucher
parent d01d0d1f76
commit a283dedd44

View File

@ -140,7 +140,7 @@ impl<'gcc, 'tcx> FnAbiGccExt<'gcc, 'tcx> for FnAbi<'tcx, Ty<'tcx>> {
}
};
for arg in &self.args {
for arg in self.args.iter() {
// add padding
if let Some(ty) = arg.pad {
argument_tys.push(ty.gcc_type(cx));