Ignore weak import on properties.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67205 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp
index 9681201..174bfc6 100644
--- a/lib/Sema/SemaDeclAttr.cpp
+++ b/lib/Sema/SemaDeclAttr.cpp
@@ -761,6 +761,8 @@
isDef = (!VD->hasExternalStorage() || VD->getInit());
} else if (FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
isDef = FD->getBody();
+ } else if (isa<ObjCPropertyDecl>(D)) {
+ // We ignore weak import on properties
} else {
S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type)
<< "weak_import" << 2 /*variable and function*/;