Correctly implement the check for a typedef name

llvm-svn: 38921
This commit is contained in:
Chris Lattner 2006-08-14 15:44:00 +00:00
parent 0fb8b36808
commit 8a3e918e33
1 changed files with 1 additions and 1 deletions

View File

@ -830,7 +830,7 @@ void Parser::ParseParenDeclarator(Declarator &D) {
HasPrototype = false;
IsEmpty = true;
} else if (Tok.getKind() == tok::identifier &&
1/*TODO: !isatypedefname(Tok.getIdentifierInfo())*/) {
!Actions.isTypedefName(*Tok.getIdentifierInfo(), CurScope)) {
// Identifier list. Note that '(' identifier-list ')' is only allowed for
// normal declarators, not for abstract-declarators.
assert(D.isPastIdentifier() && "Identifier (if present) must be passed!");