Cleanup postfix declarators.

This commit is contained in:
Roberto Raggi
2009-11-10 14:33:51 +01:00
parent a7219736b6
commit 24b6c858eb
10 changed files with 18 additions and 28 deletions

View File

@@ -560,10 +560,8 @@ unsigned DeclaratorAST::lastToken() const
return it->lastToken();
}
for (PostfixDeclaratorAST *it = postfix_declarators; it; it = it->next) {
if (! it->next)
return it->lastToken();
}
if (postfix_declarators)
return postfix_declarators->lastToken();
if (core_declarator)
return core_declarator->lastToken();