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/ParseDecl.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/ParseDecl.cpp')
-rw-r--r-- | Parse/ParseDecl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Parse/ParseDecl.cpp b/Parse/ParseDecl.cpp index 5feb40b0d9..3c2eb2a840 100644 --- a/Parse/ParseDecl.cpp +++ b/Parse/ParseDecl.cpp @@ -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: |