diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-27 18:38:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-27 18:38:20 +0000 |
commit | de39c3efcb27e240bf175b5462c8b6350de0df5f (patch) | |
tree | 98fbcf304f89708036b4a47219b247bb41a16900 /clang | |
parent | e0c511688e9f8d206c803254d706aadad68fde3a (diff) | |
download | bcm5719-llvm-de39c3efcb27e240bf175b5462c8b6350de0df5f.tar.gz bcm5719-llvm-de39c3efcb27e240bf175b5462c8b6350de0df5f.zip |
cleanup
llvm-svn: 65646
Diffstat (limited to 'clang')
-rw-r--r-- | clang/lib/Parse/ParseDecl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp index b961bc2dc09..7aef5ff0694 100644 --- a/clang/lib/Parse/ParseDecl.cpp +++ b/clang/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 { |