Skip to content

Commit 648228b

Browse files
committed
[NFC][StackSafety] Fix statistics
1 parent bb1456d commit 648228b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Analysis/StackSafetyAnalysis.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -941,13 +941,13 @@ void llvm::generateParamAccessSummary(ModuleSummaryIndex &Index) {
941941
return;
942942
const ConstantRange FullSet(FunctionSummary::ParamAccess::RangeWidth, true);
943943

944-
auto CountParamAccesses = [&](StatisticBase &Counter) {
944+
auto CountParamAccesses = [&](auto &Stat) {
945945
if (!AreStatisticsEnabled())
946946
return;
947947
for (auto &GVS : Index)
948948
for (auto &GV : GVS.second.SummaryList)
949949
if (FunctionSummary *FS = dyn_cast<FunctionSummary>(GV.get()))
950-
NumCombinedParamAccessesAfter += FS->paramAccesses().size();
950+
Stat += FS->paramAccesses().size();
951951
};
952952

953953
CountParamAccesses(NumCombinedParamAccessesBefore);

0 commit comments

Comments
 (0)