Skip to content

Commit d444843

Browse files
committed
Use SmallPtrSet instead of DenseSet
1 parent ac646c6 commit d444843

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Frontend/FrontendAction.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
#include "clang/Serialization/ASTDeserializationListener.h"
4040
#include "clang/Serialization/ASTReader.h"
4141
#include "clang/Serialization/GlobalModuleIndex.h"
42-
#include "llvm/ADT/DenseSet.h"
4342
#include "llvm/ADT/ScopeExit.h"
43+
#include "llvm/ADT/SmallPtrSet.h"
4444
#include "llvm/ADT/StringRef.h"
4545
#include "llvm/Support/BuryPointer.h"
4646
#include "llvm/Support/ErrorHandling.h"
@@ -205,7 +205,7 @@ class DeserializedDeclsSourceRangePrinter : public ASTConsumer,
205205

206206
private:
207207
std::vector<const Decl *> PendingDecls;
208-
llvm::DenseSet<const NamespaceDecl *> ProcessedNamespaces;
208+
llvm::SmallPtrSet<const NamespaceDecl *, 0> ProcessedNamespaces;
209209
bool IsCollectingDecls = true;
210210
const SourceManager &SM;
211211
std::unique_ptr<llvm::raw_ostream> OS;

0 commit comments

Comments
 (0)