for (const auto &I : Samples->getCallsiteSamples()) {
const FunctionSamples *CalleeSamples = &I.second;
if (CalleeSamples->getTotalSamples() > 0)
- Count += countUsedSamples(&I.second);
+ Count += countUsedSamples(CalleeSamples);
}
return Count;
for (const auto &I : Samples->getCallsiteSamples()) {
const FunctionSamples *CalleeSamples = &I.second;
if (CalleeSamples->getTotalSamples() > 0)
- Count += countBodySamples(&I.second);
+ Count += countBodySamples(CalleeSamples);
}
return Count;