From: Justin Bogner Date: Wed, 30 Sep 2015 02:02:08 +0000 (+0000) Subject: InstrProf: Don't call std::unique twice here X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=40be10cf3a2248f2baf0c1b4dc8a75fb5b26dd13;p=oota-llvm.git InstrProf: Don't call std::unique twice here git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248872 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/ProfileData/InstrProfReader.cpp b/lib/ProfileData/InstrProfReader.cpp index 062c337d4ee..ff93c4d4e7b 100644 --- a/lib/ProfileData/InstrProfReader.cpp +++ b/lib/ProfileData/InstrProfReader.cpp @@ -452,7 +452,6 @@ std::error_code IndexedInstrProfReader::readHeader() { HashKeys.push_back(std::make_pair(ComputeHash(HashType, Key), KeyTableRef)); } std::sort(HashKeys.begin(), HashKeys.end(), less_first()); - std::unique(HashKeys.begin(), HashKeys.end(), less_first()); HashKeys.erase(std::unique(HashKeys.begin(), HashKeys.end()), HashKeys.end()); // Set the hash key map for the InstrLookupTrait Index->getInfoObj().setHashKeys(std::move(HashKeys));