From: Mike Stump Date: Wed, 18 Mar 2009 17:39:31 +0000 (+0000) Subject: Be sure to not add weak import, if we are ignoring it. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1c90f4dc686ab872013544664c797604a309c563;p=clang Be sure to not add weak import, if we are ignoring it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67214 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index 174bfc6264..53c86ebaae 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/lib/Sema/SemaDeclAttr.cpp @@ -763,6 +763,7 @@ static void HandleWeakImportAttr(Decl *D, const AttributeList &Attr, Sema &S) { isDef = FD->getBody(); } else if (isa(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*/;