We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb1456d commit 648228bCopy full SHA for 648228b
llvm/lib/Analysis/StackSafetyAnalysis.cpp
@@ -941,13 +941,13 @@ void llvm::generateParamAccessSummary(ModuleSummaryIndex &Index) {
941
return;
942
const ConstantRange FullSet(FunctionSummary::ParamAccess::RangeWidth, true);
943
944
- auto CountParamAccesses = [&](StatisticBase &Counter) {
+ auto CountParamAccesses = [&](auto &Stat) {
945
if (!AreStatisticsEnabled())
946
947
for (auto &GVS : Index)
948
for (auto &GV : GVS.second.SummaryList)
949
if (FunctionSummary *FS = dyn_cast<FunctionSummary>(GV.get()))
950
- NumCombinedParamAccessesAfter += FS->paramAccesses().size();
+ Stat += FS->paramAccesses().size();
951
};
952
953
CountParamAccesses(NumCombinedParamAccessesBefore);
0 commit comments