[llvm] [Target] Use range-based for loops (NFC) (PR #146198)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 27 20:46:14 PDT 2025
================
@@ -2952,9 +2951,8 @@ ARMTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
// Add argument registers to the end of the list so that they are known live
// into the call.
- for (unsigned i = 0, e = RegsToPass.size(); i != e; ++i)
- Ops.push_back(DAG.getRegister(RegsToPass[i].first,
- RegsToPass[i].second.getValueType()));
+ for (const auto &[Reg, N] : RegsToPass)
----------------
kazutakahirata wrote:
Fixed in the latest revision.
https://github.com/llvm/llvm-project/pull/146198
More information about the llvm-commits
mailing list