[cfe-commits] r44159 - in /cfe/trunk/Parse: ParseDecl.cpp ParseObjc.cpp
Chris Lattner
sabre at nondot.org
Wed Nov 14 21:25:19 PST 2007
Author: lattner
Date: Wed Nov 14 23:25:19 2007
New Revision: 44159
URL: http://llvm.org/viewvc/llvm-project?rev=44159&view=rev
Log:
Handle "bool" in all places that touch _Bool.
This fixes code like "if((bool)x) {}" for example.
Patch by Nate Begeman.
Modified:
cfe/trunk/Parse/ParseDecl.cpp
cfe/trunk/Parse/ParseObjc.cpp
Modified: cfe/trunk/Parse/ParseDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Parse/ParseDecl.cpp?rev=44159&r1=44158&r2=44159&view=diff
==============================================================================
--- cfe/trunk/Parse/ParseDecl.cpp (original)
+++ cfe/trunk/Parse/ParseDecl.cpp Wed Nov 14 23:25:19 2007
@@ -937,6 +937,7 @@
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 @@
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:
Modified: cfe/trunk/Parse/ParseObjc.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Parse/ParseObjc.cpp?rev=44159&r1=44158&r2=44159&view=diff
==============================================================================
--- cfe/trunk/Parse/ParseObjc.cpp (original)
+++ cfe/trunk/Parse/ParseObjc.cpp Wed Nov 14 23:25:19 2007
@@ -467,6 +467,7 @@
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();
More information about the cfe-commits
mailing list