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:
		
							parent
							
								
									1b74a9a628
								
							
						
					
					
						commit
						bb31a42fef
					
				| 
						 | 
					@ -937,6 +937,7 @@ bool Parser::isTypeSpecifierQualifier() const {
 | 
				
			||||||
  case tok::kw_int:
 | 
					  case tok::kw_int:
 | 
				
			||||||
  case tok::kw_float:
 | 
					  case tok::kw_float:
 | 
				
			||||||
  case tok::kw_double:
 | 
					  case tok::kw_double:
 | 
				
			||||||
 | 
					  case tok::kw_bool:
 | 
				
			||||||
  case tok::kw__Bool:
 | 
					  case tok::kw__Bool:
 | 
				
			||||||
  case tok::kw__Decimal32:
 | 
					  case tok::kw__Decimal32:
 | 
				
			||||||
  case tok::kw__Decimal64:
 | 
					  case tok::kw__Decimal64:
 | 
				
			||||||
| 
						 | 
					@ -985,6 +986,7 @@ bool Parser::isDeclarationSpecifier() const {
 | 
				
			||||||
  case tok::kw_int:
 | 
					  case tok::kw_int:
 | 
				
			||||||
  case tok::kw_float:
 | 
					  case tok::kw_float:
 | 
				
			||||||
  case tok::kw_double:
 | 
					  case tok::kw_double:
 | 
				
			||||||
 | 
					  case tok::kw_bool:
 | 
				
			||||||
  case tok::kw__Bool:
 | 
					  case tok::kw__Bool:
 | 
				
			||||||
  case tok::kw__Decimal32:
 | 
					  case tok::kw__Decimal32:
 | 
				
			||||||
  case tok::kw__Decimal64:
 | 
					  case tok::kw__Decimal64:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -467,6 +467,7 @@ IdentifierInfo *Parser::ParseObjCSelector(SourceLocation &SelectorLoc) {
 | 
				
			||||||
  case tok::kw_void:                        
 | 
					  case tok::kw_void:                        
 | 
				
			||||||
  case tok::kw_volatile:                    
 | 
					  case tok::kw_volatile:                    
 | 
				
			||||||
  case tok::kw_while:                       
 | 
					  case tok::kw_while:                       
 | 
				
			||||||
 | 
					  case tok::kw_bool:
 | 
				
			||||||
  case tok::kw__Bool:
 | 
					  case tok::kw__Bool:
 | 
				
			||||||
  case tok::kw__Complex:
 | 
					  case tok::kw__Complex:
 | 
				
			||||||
    IdentifierInfo *II = Tok.getIdentifierInfo();
 | 
					    IdentifierInfo *II = Tok.getIdentifierInfo();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue