Actually remove the duplicated elements from the vector.

llvm-svn: 151270
This commit is contained in:
Benjamin Kramer 2012-02-23 18:35:56 +00:00
parent 21974b1fa6
commit c232b77556
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ void CXXBasePaths::ComputeDeclsFound() {
// Eliminate duplicated decls.
llvm::array_pod_sort(Decls.begin(), Decls.end());
std::unique(Decls.begin(), Decls.end());
Decls.erase(std::unique(Decls.begin(), Decls.end()), Decls.end());
NumDeclsFound = Decls.size();
DeclsFound = new NamedDecl * [NumDeclsFound];