[llvm] r259630 - Fix uninitiazed variable use problem
Xinliang David Li via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 2 22:23:16 PST 2016
Author: davidxl
Date: Wed Feb 3 00:23:16 2016
New Revision: 259630
URL: http://llvm.org/viewvc/llvm-project?rev=259630&view=rev
Log:
Fix uninitiazed variable use problem
Modified:
llvm/trunk/lib/ProfileData/InstrProf.cpp
Modified: llvm/trunk/lib/ProfileData/InstrProf.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ProfileData/InstrProf.cpp?rev=259630&r1=259629&r2=259630&view=diff
==============================================================================
--- llvm/trunk/lib/ProfileData/InstrProf.cpp (original)
+++ llvm/trunk/lib/ProfileData/InstrProf.cpp Wed Feb 3 00:23:16 2016
@@ -617,7 +617,7 @@ void ProfileSummary::computeDetailedSumm
std::sort(DetailedSummaryCutoffs.begin(), DetailedSummaryCutoffs.end());
uint32_t BlocksSeen = 0;
- uint64_t CurrSum = 0, Count;
+ uint64_t CurrSum = 0, Count = 0;
for (uint32_t Cutoff : DetailedSummaryCutoffs) {
assert(Cutoff <= 999999);
More information about the llvm-commits
mailing list