]> granicus.if.org Git - clang/commitdiff
Be sure to not add weak import, if we are ignoring it.
authorMike Stump <mrs@apple.com>
Wed, 18 Mar 2009 17:39:31 +0000 (17:39 +0000)
committerMike Stump <mrs@apple.com>
Wed, 18 Mar 2009 17:39:31 +0000 (17:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67214 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclAttr.cpp

index 174bfc62649e20b6be29b4229bc1cc4fd17e1e5e..53c86ebaaec915c57248cdeb47d2ca471b7f0c48 100644 (file)
@@ -763,6 +763,7 @@ static void HandleWeakImportAttr(Decl *D, const AttributeList &Attr, Sema &S) {
     isDef = FD->getBody();
   } else if (isa<ObjCPropertyDecl>(D)) {
     // We ignore weak import on properties
+    return;
   } else {
     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type)
     << "weak_import" << 2 /*variable and function*/;