From 5c7fce453dbd3b042325dabca1317b86e1d4a785 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 10 Apr 2008 16:37:40 +0000 Subject: reduce the amount of 'C++ magic' this code depends on :) llvm-svn: 49489 --- clang/lib/Parse/ParseDecl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/lib/Parse/ParseDecl.cpp') 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)) -- cgit v1.2.3