diff options
Diffstat (limited to 'lib/Sema/Sema.cpp')
-rw-r--r-- | lib/Sema/Sema.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Sema/Sema.cpp b/lib/Sema/Sema.cpp index 4b82069a62..0c5e8db1aa 100644 --- a/lib/Sema/Sema.cpp +++ b/lib/Sema/Sema.cpp @@ -394,6 +394,9 @@ static void checkUndefinedInternals(Sema &S) { // Ignore attributes that have become invalid. if (decl->isInvalidDecl()) continue; + // If we found out that the decl is external, don't warn. + if (decl->getLinkage() == ExternalLinkage) continue; + // __attribute__((weakref)) is basically a definition. if (decl->hasAttr<WeakRefAttr>()) continue; |