Skip to content

Commit d5a549a

Browse files
authored
NFC: silence some -Wrange-loop-analysis warnings. (#32635)
1 parent d0a7948 commit d5a549a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/SILOptimizer/Mandatory/MandatoryInlining.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ getCalleeFunction(SILFunction *F, FullApplySite AI, bool &IsThick,
622622
FullArgs.clear();
623623

624624
// First grab our basic arguments from our apply.
625-
for (const auto &Arg : AI.getArguments())
625+
for (SILValue Arg : AI.getArguments())
626626
FullArgs.push_back(Arg);
627627

628628
// Then grab a first approximation of our apply by stripping off all copy

lib/SILOptimizer/UtilityPasses/SerializeSILPass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ static bool hasOpaqueArchetypeOperand(TypeExpansionContext context,
131131
static bool hasOpaqueArchetypeResult(TypeExpansionContext context,
132132
SILInstruction &inst) {
133133
// Check the results for opaque types.
134-
for (const auto &res : inst.getResults())
134+
for (SILValue res : inst.getResults())
135135
if (opaqueArchetypeWouldChange(context, res->getType().getASTType()))
136136
return true;
137137
return false;

0 commit comments

Comments
 (0)