From 75df7187f33fce19265aff97c000023f8f5b8504 Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Wed, 30 Sep 2015 02:02:08 +0000 Subject: InstrProf: Don't call std::unique twice here llvm-svn: 248872 --- llvm/lib/ProfileData/InstrProfReader.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'llvm/lib/ProfileData/InstrProfReader.cpp') diff --git a/llvm/lib/ProfileData/InstrProfReader.cpp b/llvm/lib/ProfileData/InstrProfReader.cpp index 062c337..ff93c4d 100644 --- a/llvm/lib/ProfileData/InstrProfReader.cpp +++ b/llvm/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)); -- cgit v1.1