diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2011-12-16 15:54:29 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2011-12-16 15:54:29 +0000 |
commit | 6b65d4a9cc5aed96a7f1a36e75dd9c4adb164e0b (patch) | |
tree | 34b59b10e0b9b31d996e6332fbdaf1fa93657106 /lib | |
parent | 0af550115df1f57f17a4f125ff0e8b34820c65d1 (diff) |
objc: after issuing the warning on direct use of __attribute__((NSObject))
on properties, prevent consequential error diagnostics. // rdar://10591336
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146737 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Sema/SemaDeclAttr.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index 63714fdfa7..1626bf14b6 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/lib/Sema/SemaDeclAttr.cpp @@ -1753,10 +1753,8 @@ static void handleObjCNSObject(Sema &S, Decl *D, const AttributeList &Attr) { return; } } - else { + else S.Diag(D->getLocation(), diag::warn_nsobject_attribute); - return; - } D->addAttr(::new (S.Context) ObjCNSObjectAttr(Attr.getRange(), S.Context)); } |