diff options
Diffstat (limited to 'clang/Parse/Parser.cpp')
-rw-r--r-- | clang/Parse/Parser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/Parse/Parser.cpp b/clang/Parse/Parser.cpp index e63b698819d..6ffbb51da27 100644 --- a/clang/Parse/Parser.cpp +++ b/clang/Parse/Parser.cpp @@ -508,10 +508,11 @@ void Parser::ParseKNRParamDeclarations(Declarator &D) { // Handle the full declarator list. while (1) { + DeclTy *AttrList; // If attributes are present, parse them. if (Tok.getKind() == tok::kw___attribute) // FIXME: attach attributes too. - ParseAttributes(); + AttrList = ParseAttributes(); // Ask the actions module to compute the type for this declarator. Action::TypeResult TR = |