diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-08-25 19:08:04 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-08-26 10:30:36 +1000 |
| commit | b75b3b3afecfb6638c7c75ad665f8f3091aab1ae (patch) | |
| tree | 1538fd848a4898cf66d994d070cb45e53993c638 /compiler/rustc_codegen_llvm/src | |
| parent | 4df7bffa953d4583f6785114519602a4f1898f8d (diff) | |
| download | rust-b75b3b3afecfb6638c7c75ad665f8f3091aab1ae.tar.gz rust-b75b3b3afecfb6638c7c75ad665f8f3091aab1ae.zip | |
Change `FnAbi::args` to a boxed slice.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/abi.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/abi.rs b/compiler/rustc_codegen_llvm/src/abi.rs index b88db6f6f98..2353362f83b 100644 --- a/compiler/rustc_codegen_llvm/src/abi.rs +++ b/compiler/rustc_codegen_llvm/src/abi.rs @@ -442,7 +442,7 @@ impl<'ll, 'tcx> FnAbiLlvmExt<'ll, 'tcx> for FnAbi<'tcx, Ty<'tcx>> { } _ => {} } - for arg in &self.args { + for arg in self.args.iter() { if arg.pad.is_some() { apply(&ArgAttributes::new()); } @@ -518,7 +518,7 @@ impl<'ll, 'tcx> FnAbiLlvmExt<'ll, 'tcx> for FnAbi<'tcx, Ty<'tcx>> { } } } - for arg in &self.args { + for arg in self.args.iter() { if arg.pad.is_some() { apply(bx.cx, &ArgAttributes::new()); } |
