aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/MultiplexExternalSemaSource.cpp
diff options
context:
space:
mode:
authorWei Wang <apollo.mobility@gmail.com>2021-05-03 15:43:39 -0700
committerWei Wang <apollo.mobility@gmail.com>2021-05-20 15:34:29 -0700
commite6b8320c0a634ba60c82693c6631ea90fb2988a6 (patch)
tree30157df3212ffced25a3df6451b42bcc21e66269 /clang/lib/Sema/MultiplexExternalSemaSource.cpp
parente84a9b9bb3051c35dea993cdad7b3d2575638f85 (diff)
downloadllvm-e6b8320c0a634ba60c82693c6631ea90fb2988a6.zip
llvm-e6b8320c0a634ba60c82693c6631ea90fb2988a6.tar.gz
llvm-e6b8320c0a634ba60c82693c6631ea90fb2988a6.tar.bz2
[clang][AST] Improve AST Reader/Writer memory footprint
Reduce memory footprint of AST Reader/Writer: 1. Adjust internal data containers' element type. 2. Switch to set for deduplication of deferred diags. Differential Revision: https://reviews.llvm.org/D101793
Diffstat (limited to 'clang/lib/Sema/MultiplexExternalSemaSource.cpp')
-rw-r--r--clang/lib/Sema/MultiplexExternalSemaSource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/MultiplexExternalSemaSource.cpp b/clang/lib/Sema/MultiplexExternalSemaSource.cpp
index 3a993e2..0727756 100644
--- a/clang/lib/Sema/MultiplexExternalSemaSource.cpp
+++ b/clang/lib/Sema/MultiplexExternalSemaSource.cpp
@@ -268,7 +268,7 @@ void MultiplexExternalSemaSource::ReadExtVectorDecls(
}
void MultiplexExternalSemaSource::ReadDeclsToCheckForDeferredDiags(
- llvm::SmallVector<Decl *, 4> &Decls) {
+ llvm::SmallSetVector<Decl *, 4> &Decls) {
for(size_t i = 0; i < Sources.size(); ++i)
Sources[i]->ReadDeclsToCheckForDeferredDiags(Decls);
}