diff options
Diffstat (limited to 'lib/Parse/ParseDecl.cpp')
-rw-r--r-- | lib/Parse/ParseDecl.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp index 192c70a192..c3bbb52a13 100644 --- a/lib/Parse/ParseDecl.cpp +++ b/lib/Parse/ParseDecl.cpp @@ -28,9 +28,7 @@ using namespace clang; /// specifier-qualifier-list abstract-declarator[opt] /// /// Called type-id in C++. -/// CXXNewMode is a special flag used by the parser of C++ new-expressions. It -/// is simply passed on to ActOnTypeName. -Parser::TypeTy *Parser::ParseTypeName(bool CXXNewMode) { +Parser::TypeTy *Parser::ParseTypeName() { // Parse the common declaration-specifiers piece. DeclSpec DS; ParseSpecifierQualifierList(DS); @@ -39,7 +37,7 @@ Parser::TypeTy *Parser::ParseTypeName(bool CXXNewMode) { Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); ParseDeclarator(DeclaratorInfo); - return Actions.ActOnTypeName(CurScope, DeclaratorInfo, CXXNewMode).Val; + return Actions.ActOnTypeName(CurScope, DeclaratorInfo).Val; } /// ParseAttributes - Parse a non-empty attributes list. |