summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/Sema.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-08-05 09:48:08 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-08-05 09:48:08 +0000
commitee1afa30827e0805394cecc092beb083d1169283 (patch)
tree48b3fbf07fa4cac6ce43c3796b66f8cbe31bdb63 /clang/lib/Sema/Sema.cpp
parent4ba81b2ee4f96cf25531e5e341c61a6d510913c9 (diff)
downloadbcm5719-llvm-ee1afa30827e0805394cecc092beb083d1169283.tar.gz
bcm5719-llvm-ee1afa30827e0805394cecc092beb083d1169283.zip
Support #pragma weak for PCH.
llvm-svn: 110323
Diffstat (limited to 'clang/lib/Sema/Sema.cpp')
-rw-r--r--clang/lib/Sema/Sema.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp
index 2c834f43492..6de4202bae0 100644
--- a/clang/lib/Sema/Sema.cpp
+++ b/clang/lib/Sema/Sema.cpp
@@ -243,6 +243,9 @@ void Sema::ActOnEndOfTranslationUnit() {
true)),
UnusedStaticFuncs.end());
+ if (!CompleteTranslationUnit)
+ return;
+
// Check for #pragma weak identifiers that were never declared
// FIXME: This will cause diagnostics to be emitted in a non-determinstic
// order! Iterating over a densemap like this is bad.
@@ -255,9 +258,6 @@ void Sema::ActOnEndOfTranslationUnit() {
<< I->first;
}
- if (!CompleteTranslationUnit)
- return;
-
// C99 6.9.2p2:
// A declaration of an identifier for an object that has file
// scope without an initializer, and without a storage-class
OpenPOWER on IntegriCloud