From: Fariborz Jahanian Date: Tue, 13 Apr 2010 19:02:07 +0000 (+0000) Subject: Turn off warning about weak_import attribute X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a50d75031908759135dd241d7bfb120f3f4c4749;p=clang Turn off warning about weak_import attribute on objc classes for Darwin. Radar 7839485. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101164 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index aceaafcf3a..c721f57e9c 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/lib/Sema/SemaDeclAttr.cpp @@ -901,9 +901,7 @@ static void HandleWeakImportAttr(Decl *D, const AttributeList &Attr, Sema &S) { return; } else if (!(S.LangOpts.ObjCNonFragileABI && isa(D))) { if (S.Context.Target.getTriple().getOS() != llvm::Triple::Darwin || - !isa(D) || - S.Context.Target.getTriple().getDarwinMajorNumber() <= 10) { - + !isa(D)) { S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type) << Attr.getName() << 2 /*variable and function*/; return;