summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDeclAttr.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-04-13 20:22:35 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-04-13 20:22:35 +0000
commitea70a17626beb5621a623f9d3b192014d95c5bf3 (patch)
treebbd561e8eaeaedde72fc13b18e03275ad1468cfc /clang/lib/Sema/SemaDeclAttr.cpp
parent89e74792b64f3489c9d0c0e6bbccc89cb44ea9ad (diff)
downloadbcm5719-llvm-ea70a17626beb5621a623f9d3b192014d95c5bf3.tar.gz
bcm5719-llvm-ea70a17626beb5621a623f9d3b192014d95c5bf3.zip
Twik to radar 7839485. Do not attach weak_import attribute to class
for non-fragile abi on darwin. llvm-svn: 101168
Diffstat (limited to 'clang/lib/Sema/SemaDeclAttr.cpp')
-rw-r--r--clang/lib/Sema/SemaDeclAttr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp
index c721f57e9cb..bf54d2fea71 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/lib/Sema/SemaDeclAttr.cpp
@@ -900,12 +900,12 @@ static void HandleWeakImportAttr(Decl *D, const AttributeList &Attr, Sema &S) {
// We ignore weak import on properties and methods
return;
} else if (!(S.LangOpts.ObjCNonFragileABI && isa<ObjCInterfaceDecl>(D))) {
+ // Don't issue the warning for darwin as target; yet, ignore the attribute.
if (S.Context.Target.getTriple().getOS() != llvm::Triple::Darwin ||
- !isa<ObjCInterfaceDecl>(D)) {
- S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type)
+ !isa<ObjCInterfaceDecl>(D))
+ S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type)
<< Attr.getName() << 2 /*variable and function*/;
return;
- }
}
// Merge should handle any subsequent violations.
OpenPOWER on IntegriCloud