From: Chris Lattner Date: Fri, 27 Feb 2009 18:38:20 +0000 (+0000) Subject: cleanup X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e64c5491d0097b280eb553696ee9c0d8fa139f82;p=clang cleanup git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65646 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp index b961bc2dc0..7aef5ff069 100644 --- a/lib/Parse/ParseDecl.cpp +++ b/lib/Parse/ParseDecl.cpp @@ -2101,8 +2101,8 @@ void Parser::ParseFunctionDeclarator(SourceLocation LParenLoc, Declarator &D, DS.AddAttributes(AttrList); AttrList = 0; // Only apply the attributes to the first parameter. } - ParseDeclarationSpecifiers(DS); - + ParseDeclarationSpecifiers(DS); + // Parse the declarator. This is "PrototypeContext", because we must // accept either 'declarator' or 'abstract-declarator' here. Declarator ParmDecl(DS, Declarator::PrototypeContext); @@ -2124,8 +2124,8 @@ void Parser::ParseFunctionDeclarator(SourceLocation LParenLoc, Declarator &D, // If no parameter was specified, verify that *something* was specified, // otherwise we have a missing type and identifier. - if (DS.getParsedSpecifiers() == DeclSpec::PQ_None && - ParmDecl.getIdentifier() == 0 && ParmDecl.getNumTypeObjects() == 0) { + if (DS.isEmpty() && ParmDecl.getIdentifier() == 0 && + ParmDecl.getNumTypeObjects() == 0) { // Completely missing, emit error. Diag(DSStart, diag::err_missing_param); } else {