Skip to content

Commit c85e006

Browse files
OSS-Fuzz Teamcopybara-github
authored andcommitted
Migrate llvm::SmallSet to llvm::SmallPtrSet.
Indexer-PiperOrigin-RevId: 800935054
1 parent 262bce4 commit c85e006

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

infra/indexer/frontend/ast_visitor.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
#include "llvm/ADT/APSInt.h"
4747
#include "llvm/ADT/ArrayRef.h"
4848
#include "llvm/ADT/MapVector.h"
49+
#include "llvm/ADT/SmallPtrSet.h"
4950
#include "llvm/ADT/SmallSet.h"
5051
#include "llvm/ADT/SmallString.h"
5152
#include "llvm/ADT/SmallVector.h"
@@ -774,7 +775,7 @@ void AddVirtualMethodLinksImpl(
774775
const DefiningSuperBasesToMethods& defining_super_bases_to_methods,
775776
EntityId child_id, InMemoryIndex& index,
776777
EntityIdByDecl&& get_entity_id_for_decl, const clang::ASTContext& context) {
777-
llvm::SmallSet<const clang::CXXRecordDecl*, 32> seen;
778+
llvm::SmallPtrSet<const clang::CXXRecordDecl*, 32> seen;
778779
llvm::SmallVector<const clang::CXXRecordDecl*, 32> to_visit;
779780
auto add_bases_to_visit = [&to_visit,
780781
&seen](const clang::CXXRecordDecl* class_decl) {

0 commit comments

Comments
 (0)