Skip to content

Commit 528fe6a

Browse files
authored
Merge pull request #22007 from shahzadlone/master
2 parents d4598ec + 0ff69d4 commit 528fe6a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/SILOptimizer/Analysis/AccessSummaryAnalysis.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void AccessSummaryAnalysis::processFunction(FunctionInfo *info,
3232
FunctionSummary &functionSummary = info->getSummary();
3333
ArgumentSummary &argSummary =
3434
functionSummary.getAccessForArgument(index);
35-
index++;
35+
++index;
3636

3737
auto *functionArg = cast<SILFunctionArgument>(arg);
3838
// Only summarize @inout_aliasable arguments.
@@ -426,7 +426,7 @@ AccessSummaryAnalysis::ArgumentSummary::getDescription(SILType BaseType,
426426
os << ", ";
427427
}
428428
os << subAccess.getDescription(BaseType, M);
429-
index++;
429+
++index;
430430
}
431431
os << "]";
432432

@@ -597,7 +597,7 @@ static unsigned subPathLength(const IndexTrieNode *subPath) {
597597

598598
const IndexTrieNode *iter = subPath;
599599
while (iter) {
600-
length++;
600+
++length;
601601
iter = iter->getParent();
602602
}
603603

@@ -631,7 +631,7 @@ void AccessSummaryAnalysis::FunctionSummary::print(raw_ostream &os,
631631
unsigned argCount = getArgumentCount();
632632
os << "(";
633633

634-
for (unsigned i = 0; i < argCount; i++) {
634+
for (unsigned i = 0; i < argCount; ++i) {
635635
if (i > 0) {
636636
os << ", ";
637637
}

0 commit comments

Comments
 (0)