diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-08-05 09:48:08 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-08-05 09:48:08 +0000 |
| commit | ee1afa30827e0805394cecc092beb083d1169283 (patch) | |
| tree | 48b3fbf07fa4cac6ce43c3796b66f8cbe31bdb63 /clang/lib/Sema/Sema.cpp | |
| parent | 4ba81b2ee4f96cf25531e5e341c61a6d510913c9 (diff) | |
| download | bcm5719-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.cpp | 6 |
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 |

