aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2023-12-24 22:45:50 -0800
committerKazu Hirata <kazu@google.com>2023-12-24 22:45:50 -0800
commit41cb686d0f05d2ed35e52f8c5e498ca3dd0809c4 (patch)
tree72f5187a7c86e0b050a95242877c10703f5c380e /llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
parent966d564e43e650b9c34f9c67829d3947f52add91 (diff)
downloadllvm-41cb686d0f05d2ed35e52f8c5e498ca3dd0809c4.zip
llvm-41cb686d0f05d2ed35e52f8c5e498ca3dd0809c4.tar.gz
llvm-41cb686d0f05d2ed35e52f8c5e498ca3dd0809c4.tar.bz2
[CodeGen] Use range-based for loops (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
index 03cba89..5926a60 100644
--- a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
@@ -377,8 +377,7 @@ Register FunctionLoweringInfo::CreateRegs(Type *Ty, bool isDivergent) {
ComputeValueVTs(*TLI, MF->getDataLayout(), Ty, ValueVTs);
Register FirstReg;
- for (unsigned Value = 0, e = ValueVTs.size(); Value != e; ++Value) {
- EVT ValueVT = ValueVTs[Value];
+ for (EVT ValueVT : ValueVTs) {
MVT RegisterVT = TLI->getRegisterType(Ty->getContext(), ValueVT);
unsigned NumRegs = TLI->getNumRegisters(Ty->getContext(), ValueVT);