From f7cd09a0477d3cd7812cff1169f7c7cffbcaf594 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Fri, 29 Nov 2013 16:13:12 +0000 Subject: Using a custom subject to reenable the Subjects line for the ns_bridged attribute. No functional change intended. llvm-svn: 195963 --- clang/lib/Sema/SemaDeclAttr.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'clang/lib/Sema/SemaDeclAttr.cpp') diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp index f49ea11faae..d4fb9204633 100644 --- a/clang/lib/Sema/SemaDeclAttr.cpp +++ b/clang/lib/Sema/SemaDeclAttr.cpp @@ -3823,12 +3823,6 @@ static void handleCFTransferAttr(Sema &S, Decl *D, const AttributeList &A) { static void handleNSBridgedAttr(Sema &S, Scope *Sc, Decl *D, const AttributeList &Attr) { - RecordDecl *RD = dyn_cast(D); - if (!RD || RD->isUnion()) { - S.Diag(D->getLocStart(), diag::err_attribute_wrong_decl_type) - << Attr.getRange() << Attr.getName() << ExpectedStruct; - } - IdentifierLoc *Parm = Attr.isArgIdent(0) ? Attr.getArgAsIdent(0) : 0; // In Objective-C, verify that the type names an Objective-C type. -- cgit v1.2.3