aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/ARM/ARMFrameLowering.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2023-12-24 23:09:55 -0800
committerKazu Hirata <kazu@google.com>2023-12-24 23:09:55 -0800
commitaf8d0502860d9ec2ac9682f35a19c83300f8b25a (patch)
tree7d133708bee56a265d358c1dc77d697682922bbe /llvm/lib/Target/ARM/ARMFrameLowering.cpp
parent41cb686d0f05d2ed35e52f8c5e498ca3dd0809c4 (diff)
downloadllvm-af8d0502860d9ec2ac9682f35a19c83300f8b25a.zip
llvm-af8d0502860d9ec2ac9682f35a19c83300f8b25a.tar.gz
llvm-af8d0502860d9ec2ac9682f35a19c83300f8b25a.tar.bz2
[Target] Use range-based for loops (NFC)
Diffstat (limited to 'llvm/lib/Target/ARM/ARMFrameLowering.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMFrameLowering.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMFrameLowering.cpp b/llvm/lib/Target/ARM/ARMFrameLowering.cpp
index 10d9c7f..eeb7f64 100644
--- a/llvm/lib/Target/ARM/ARMFrameLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMFrameLowering.cpp
@@ -2692,8 +2692,7 @@ void ARMFrameLowering::determineCalleeSaves(MachineFunction &MF,
const Align TargetAlign = getStackAlign();
if (TargetAlign >= Align(8) && (NumGPRSpills & 1)) {
if (CS1Spilled && !UnspilledCS1GPRs.empty()) {
- for (unsigned i = 0, e = UnspilledCS1GPRs.size(); i != e; ++i) {
- unsigned Reg = UnspilledCS1GPRs[i];
+ for (unsigned Reg : UnspilledCS1GPRs) {
// Don't spill high register if the function is thumb. In the case of
// Windows on ARM, accept R11 (frame pointer)
if (!AFI->isThumbFunction() ||