SamplePGO - Use newly introduced local variable. NFC.

llvm-svn: 253868
diff --git a/llvm/lib/Transforms/IPO/SampleProfile.cpp b/llvm/lib/Transforms/IPO/SampleProfile.cpp
index 816fc93..20bfac9 100644
--- a/llvm/lib/Transforms/IPO/SampleProfile.cpp
+++ b/llvm/lib/Transforms/IPO/SampleProfile.cpp
@@ -236,7 +236,7 @@
   for (const auto &I : Samples->getCallsiteSamples()) {
     const FunctionSamples *CalleeSamples = &I.second;
     if (CalleeSamples->getTotalSamples() > 0)
-      Count += countUsedSamples(&I.second);
+      Count += countUsedSamples(CalleeSamples);
   }
 
   return Count;
@@ -255,7 +255,7 @@
   for (const auto &I : Samples->getCallsiteSamples()) {
     const FunctionSamples *CalleeSamples = &I.second;
     if (CalleeSamples->getTotalSamples() > 0)
-      Count += countBodySamples(&I.second);
+      Count += countBodySamples(CalleeSamples);
   }
 
   return Count;