diff options
author | Chris Lattner <sabre@nondot.org> | 2007-11-15 05:25:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-11-15 05:25:19 +0000 |
commit | 9298d9655aed28b2d9f6cc65c81401b209f03fdc (patch) | |
tree | 872f2973527467bb14bbac170b0dc9dc7e9b393f /Parse/ParseObjc.cpp | |
parent | 7e3411b23eb3724da5461dc6d6f97d14b3b0a52f (diff) |
Handle "bool" in all places that touch _Bool.
This fixes code like "if((bool)x) {}" for example.
Patch by Nate Begeman.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44159 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Parse/ParseObjc.cpp')
-rw-r--r-- | Parse/ParseObjc.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Parse/ParseObjc.cpp b/Parse/ParseObjc.cpp index 2152601094..345906e70f 100644 --- a/Parse/ParseObjc.cpp +++ b/Parse/ParseObjc.cpp @@ -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(); |