summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDeclAttr.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2013-11-29 16:13:12 +0000
committerAaron Ballman <aaron@aaronballman.com>2013-11-29 16:13:12 +0000
commitf7cd09a0477d3cd7812cff1169f7c7cffbcaf594 (patch)
tree9cebe195d92eb13c6336a679aadf51dc5231d23d /clang/lib/Sema/SemaDeclAttr.cpp
parent4cfafb9a85a8101e715b6a01bafecfff90bdf3d7 (diff)
downloadbcm5719-llvm-f7cd09a0477d3cd7812cff1169f7c7cffbcaf594.tar.gz
bcm5719-llvm-f7cd09a0477d3cd7812cff1169f7c7cffbcaf594.zip
Using a custom subject to reenable the Subjects line for the ns_bridged attribute. No functional change intended.
llvm-svn: 195963
Diffstat (limited to 'clang/lib/Sema/SemaDeclAttr.cpp')
-rw-r--r--clang/lib/Sema/SemaDeclAttr.cpp6
1 files changed, 0 insertions, 6 deletions
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<RecordDecl>(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.
OpenPOWER on IntegriCloud