diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-23 18:35:56 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-23 18:35:56 +0000 |
commit | eb2f220b334fc77202864c1a57246361f262b5e1 (patch) | |
tree | 95bf459788d7d17edca661c53c8b010cc9b314b3 /lib/AST/CXXInheritance.cpp | |
parent | ac37150c13c4e6f54551c52a1118f105be5f136b (diff) |
Actually remove the duplicated elements from the vector.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151270 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/CXXInheritance.cpp')
-rw-r--r-- | lib/AST/CXXInheritance.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/CXXInheritance.cpp b/lib/AST/CXXInheritance.cpp index f6ce983399..218673090a 100644 --- a/lib/AST/CXXInheritance.cpp +++ b/lib/AST/CXXInheritance.cpp @@ -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]; |