on objc classes for Darwin. Radar
7839485.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101164
91177308-0d34-0410-b5e6-
96231b3b80d8
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;