Handle "bool" in all places that touch _Bool.

This fixes code like "if((bool)x) {}" for example.

Patch by Nate Begeman.

llvm-svn: 44159
This commit is contained in:
Chris Lattner 2007-11-15 05:25:19 +00:00
parent 1b74a9a628
commit bb31a42fef
2 changed files with 3 additions and 0 deletions

View File

@ -937,6 +937,7 @@ bool Parser::isTypeSpecifierQualifier() const {
case tok::kw_int:
case tok::kw_float:
case tok::kw_double:
case tok::kw_bool:
case tok::kw__Bool:
case tok::kw__Decimal32:
case tok::kw__Decimal64:
@ -985,6 +986,7 @@ bool Parser::isDeclarationSpecifier() const {
case tok::kw_int:
case tok::kw_float:
case tok::kw_double:
case tok::kw_bool:
case tok::kw__Bool:
case tok::kw__Decimal32:
case tok::kw__Decimal64:

View File

@ -467,6 +467,7 @@ IdentifierInfo *Parser::ParseObjCSelector(SourceLocation &SelectorLoc) {
case tok::kw_void:
case tok::kw_volatile:
case tok::kw_while:
case tok::kw_bool:
case tok::kw__Bool:
case tok::kw__Complex:
IdentifierInfo *II = Tok.getIdentifierInfo();