diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-10 16:37:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-10 16:37:40 +0000 |
commit | 5c7fce453dbd3b042325dabca1317b86e1d4a785 (patch) | |
tree | 1274d5d87d41a0bb072a91bd8ded9d16510373b0 /clang/lib/Parse/ParseDecl.cpp | |
parent | ea1bc3bec6cdaa6bec6e59ffa6d497bbe1ee6a6e (diff) | |
download | bcm5719-llvm-5c7fce453dbd3b042325dabca1317b86e1d4a785.tar.gz bcm5719-llvm-5c7fce453dbd3b042325dabca1317b86e1d4a785.zip |
reduce the amount of 'C++ magic' this code depends on :)
llvm-svn: 49489
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r-- | clang/lib/Parse/ParseDecl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp index 1d412482ea9..804fffb9f13 100644 --- a/clang/lib/Parse/ParseDecl.cpp +++ b/clang/lib/Parse/ParseDecl.cpp @@ -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)) |