summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTReader.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-09-15 18:47:32 +0000
committerDouglas Gregor <dgregor@apple.com>2011-09-15 18:47:32 +0000
commit6137d32c1b3e3cef750b32ac780d6a669a7b27cb (patch)
tree2dd0a0495683a615ce5d2b6241e9239f662f5820 /clang/lib/Serialization/ASTReader.cpp
parentc2ff27446dc7f7399ada50b073ebfd423f2fb35d (diff)
downloadbcm5719-llvm-6137d32c1b3e3cef750b32ac780d6a669a7b27cb.tar.gz
bcm5719-llvm-6137d32c1b3e3cef750b32ac780d6a669a7b27cb.zip
When we load the first module, make sure that we wire up the ASTConsumer to the newly-created ASTReader. This makes sure that CodeGen sees the declarations it is interested in
llvm-svn: 139824
Diffstat (limited to 'clang/lib/Serialization/ASTReader.cpp')
-rw-r--r--clang/lib/Serialization/ASTReader.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp
index 30c44291ee3..e4f9fa693c8 100644
--- a/clang/lib/Serialization/ASTReader.cpp
+++ b/clang/lib/Serialization/ASTReader.cpp
@@ -4092,6 +4092,7 @@ void ASTReader::StartTranslationUnit(ASTConsumer *Consumer) {
// passing to the consumer.
GetDecl(ExternalDefinitions[I]);
}
+ ExternalDefinitions.clear();
PassInterestingDeclsToConsumer();
}
OpenPOWER on IntegriCloud