diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-10-03 17:33:35 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-10-03 17:33:35 +0000 |
commit | 7d076643e77a941cd1e53ed4a328df64c88140a5 (patch) | |
tree | 8bd7ca94602570580c6689b5017c237823d74ff6 /lib/Sema/SemaDecl.cpp | |
parent | 5e592d889071d15d455deeafcc53955ccfcd0424 (diff) |
Merge postfix attributes on record decls.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57019 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 315bf98af5..e1215a5e9e 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -2112,7 +2112,7 @@ void Sema::ActOnFields(Scope* S, SourceLocation RecLoc, DeclTy *RecDecl, DeclTy **Fields, unsigned NumFields, SourceLocation LBrac, SourceLocation RBrac, - AttributeList *Attrs) { + AttributeList *Attr) { Decl *EnclosingDecl = static_cast<Decl*>(RecDecl); assert(EnclosingDecl && "missing record or interface decl"); RecordDecl *Record = dyn_cast<RecordDecl>(EnclosingDecl); @@ -2257,6 +2257,9 @@ void Sema::ActOnFields(Scope* S, CheckImplementationIvars(IMPDecl, ClsFields, RecFields.size(), RBrac); } } + + if (Attr) + ProcessDeclAttributeList(Record, Attr); } Sema::DeclTy *Sema::ActOnEnumConstant(Scope *S, DeclTy *theEnumDecl, |