[cfe-commits] r101164 - /cfe/trunk/lib/Sema/SemaDeclAttr.cpp
Fariborz Jahanian
fjahanian at apple.com
Tue Apr 13 12:02:07 PDT 2010
Author: fjahanian
Date: Tue Apr 13 14:02:07 2010
New Revision: 101164
URL: http://llvm.org/viewvc/llvm-project?rev=101164&view=rev
Log:
Turn off warning about weak_import attribute
on objc classes for Darwin. Radar 7839485.
Modified:
cfe/trunk/lib/Sema/SemaDeclAttr.cpp
Modified: cfe/trunk/lib/Sema/SemaDeclAttr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclAttr.cpp?rev=101164&r1=101163&r2=101164&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclAttr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclAttr.cpp Tue Apr 13 14:02:07 2010
@@ -901,9 +901,7 @@
return;
} else if (!(S.LangOpts.ObjCNonFragileABI && isa<ObjCInterfaceDecl>(D))) {
if (S.Context.Target.getTriple().getOS() != llvm::Triple::Darwin ||
- !isa<ObjCInterfaceDecl>(D) ||
- S.Context.Target.getTriple().getDarwinMajorNumber() <= 10) {
-
+ !isa<ObjCInterfaceDecl>(D)) {
S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type)
<< Attr.getName() << 2 /*variable and function*/;
return;
More information about the cfe-commits
mailing list