forked from OSchip/llvm-project
Actually remove the duplicated elements from the vector.
llvm-svn: 151270
This commit is contained in:
parent
21974b1fa6
commit
c232b77556
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue