[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:08 PDT 2025
================
@@ -2766,9 +2766,8 @@ ARMTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
// Build a sequence of copy-to-reg nodes chained together with token chain
// and flag operands which copy the outgoing args into the appropriate regs.
SDValue InGlue;
- for (unsigned i = 0, e = RegsToPass.size(); i != e; ++i) {
- Chain = DAG.getCopyToReg(Chain, dl, RegsToPass[i].first,
- RegsToPass[i].second, InGlue);
+ 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