diff options
Diffstat (limited to 'llvm/lib/ProfileData/InstrProfReader.cpp')
-rw-r--r-- | llvm/lib/ProfileData/InstrProfReader.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/ProfileData/InstrProfReader.cpp b/llvm/lib/ProfileData/InstrProfReader.cpp index 9c17d4e082d..b00c1392eb8 100644 --- a/llvm/lib/ProfileData/InstrProfReader.cpp +++ b/llvm/lib/ProfileData/InstrProfReader.cpp @@ -595,9 +595,8 @@ IndexedInstrProfReader::readSummary(IndexedInstrProf::ProfVersion Version, } else { // For older version of profile data, we need to compute on the fly: using namespace IndexedInstrProf; - std::vector<uint32_t> Cutoffs(&SummaryCutoffs[0], - &SummaryCutoffs[NumSummaryCutoffs]); - this->Summary = llvm::make_unique<InstrProfSummary>(Cutoffs); + this->Summary = + llvm::make_unique<InstrProfSummary>(ProfileSummary::DefaultCutoffs); this->Summary->computeDetailedSummary(); return Cur; } |