diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2009-05-04 19:35:12 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-05-04 19:35:12 +0000 |
| commit | 60637985de74e89e4e47e1e71be3ffbf29592845 (patch) | |
| tree | 770a4fbc24fe767c30440954eac3571d46f19e8a /clang/lib/Sema | |
| parent | 71fb950b73afbeba01e870adfc62a0d03a9f80c6 (diff) | |
| download | bcm5719-llvm-60637985de74e89e4e47e1e71be3ffbf29592845.tar.gz bcm5719-llvm-60637985de74e89e4e47e1e71be3ffbf29592845.zip | |
ignore weak_import attribute on objc method decls.
llvm-svn: 70901
Diffstat (limited to 'clang/lib/Sema')
| -rw-r--r-- | clang/lib/Sema/SemaDeclAttr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp index 8aec8c8e07f..b29bcec1aa7 100644 --- a/clang/lib/Sema/SemaDeclAttr.cpp +++ b/clang/lib/Sema/SemaDeclAttr.cpp @@ -775,8 +775,8 @@ static void HandleWeakImportAttr(Decl *D, const AttributeList &Attr, Sema &S) { isDef = (!VD->hasExternalStorage() || VD->getInit()); } else if (FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { isDef = FD->getBody(S.Context); - } else if (isa<ObjCPropertyDecl>(D)) { - // We ignore weak import on properties + } else if (isa<ObjCPropertyDecl>(D) || isa<ObjCMethodDecl>(D)) { + // We ignore weak import on properties and methods return; } else { S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type) |

