summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Builtins.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/AST/Builtins.cpp')
-rw-r--r--clang/lib/AST/Builtins.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/AST/Builtins.cpp b/clang/lib/AST/Builtins.cpp
index 3980d205217..1823ee60559 100644
--- a/clang/lib/AST/Builtins.cpp
+++ b/clang/lib/AST/Builtins.cpp
@@ -127,6 +127,10 @@ static QualType DecodeTypeFromStr(const char *&Str, ASTContext &Context,
else
Type = Context.CharTy;
break;
+ case 'b': // boolean
+ assert(!Long && !Signed && !Unsigned && "Bad modifiers for 'b'!");
+ Type = Context.BoolTy;
+ break;
case 'z': // size_t.
assert(!Long && !Signed && !Unsigned && "Bad modifiers for 'z'!");
Type = Context.getSizeType();
OpenPOWER on IntegriCloud