forked from OSchip/llvm-project
reduce the amount of 'C++ magic' this code depends on :)
llvm-svn: 49489
This commit is contained in:
parent
ea1bc3bec6
commit
5c7fce453d
|
@ -670,7 +670,7 @@ public:
|
|||
struct FieldDeclarator {
|
||||
Declarator D;
|
||||
Action::ExprTy *BitfieldSize;
|
||||
FieldDeclarator(DeclSpec &DS) : D(DS, Declarator::MemberContext) {
|
||||
explicit FieldDeclarator(DeclSpec &DS) : D(DS, Declarator::MemberContext) {
|
||||
BitfieldSize = 0;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -677,7 +677,7 @@ ParseStructDeclaration(DeclSpec &DS,
|
|||
}
|
||||
|
||||
// Read struct-declarators until we find the semicolon.
|
||||
Fields.push_back(DS);
|
||||
Fields.push_back(FieldDeclarator(DS));
|
||||
while (1) {
|
||||
FieldDeclarator &DeclaratorInfo = Fields.back();
|
||||
|
||||
|
@ -708,7 +708,7 @@ ParseStructDeclaration(DeclSpec &DS,
|
|||
ConsumeToken();
|
||||
|
||||
// Parse the next declarator.
|
||||
Fields.push_back(DS);
|
||||
Fields.push_back(FieldDeclarator(DS));
|
||||
|
||||
// Attributes are only allowed on the second declarator.
|
||||
if (Tok.is(tok::kw___attribute))
|
||||
|
|
Loading…
Reference in New Issue