diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-10-03 02:03:53 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-10-03 02:03:53 +0000 |
commit | 1bfe1c2129771c06fb58ae5e8c079ae30e138309 (patch) | |
tree | a21f078541b4fbd646d1840efa43ae343b80cd51 /lib/Parse/ParseDecl.cpp | |
parent | 29471a1341a074106a9ae7247f1e3788628dc48c (diff) |
Pass postfix attributes to ActOnFields.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56992 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseDecl.cpp')
-rw-r--r-- | lib/Parse/ParseDecl.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp index 80970a2f14..5ea9d13b03 100644 --- a/lib/Parse/ParseDecl.cpp +++ b/lib/Parse/ParseDecl.cpp @@ -764,14 +764,15 @@ void Parser::ParseStructUnionBody(SourceLocation RecordLoc, SourceLocation RBraceLoc = MatchRHSPunctuation(tok::r_brace, LBraceLoc); - Actions.ActOnFields(CurScope, - RecordLoc,TagDecl,&FieldDecls[0],FieldDecls.size(), - LBraceLoc, RBraceLoc); - AttributeList *AttrList = 0; // If attributes exist after struct contents, parse them. if (Tok.is(tok::kw___attribute)) AttrList = ParseAttributes(); // FIXME: where should I put them? + + Actions.ActOnFields(CurScope, + RecordLoc,TagDecl,&FieldDecls[0],FieldDecls.size(), + LBraceLoc, RBraceLoc, + AttrList); } |