diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2011-10-26 23:59:12 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2011-10-26 23:59:12 +0000 |
commit | 3249a1e8626fb73fba5fc840d2656b77ec27bf20 (patch) | |
tree | ce7332fbb51f6d849ec21e170bdf02276da4e86e /clang/lib/Sema/SemaDeclAttr.cpp | |
parent | 58dba012b6211d6c155df4f1fd7b7b4df9b6b3f1 (diff) | |
download | bcm5719-llvm-3249a1e8626fb73fba5fc840d2656b77ec27bf20.tar.gz bcm5719-llvm-3249a1e8626fb73fba5fc840d2656b77ec27bf20.zip |
Do not warn when weak-import attribute is applied to enum
decl. in Darwin due to certain projects requirement.
// rdar://10277579
llvm-svn: 143082
Diffstat (limited to 'clang/lib/Sema/SemaDeclAttr.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDeclAttr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp index d43e1f1a9ba..9f025a2b76a 100644 --- a/clang/lib/Sema/SemaDeclAttr.cpp +++ b/clang/lib/Sema/SemaDeclAttr.cpp @@ -1949,7 +1949,7 @@ static void handleWeakImportAttr(Sema &S, Decl *D, const AttributeList &Attr) { << "weak_import" << 2 /*variable and function*/; else if (isa<ObjCPropertyDecl>(D) || isa<ObjCMethodDecl>(D) || (S.Context.getTargetInfo().getTriple().isOSDarwin() && - isa<ObjCInterfaceDecl>(D))) { + (isa<ObjCInterfaceDecl>(D) || isa<EnumDecl>(D)))) { // Nothing to warn about here. } else S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type) |