diff options
author | Mon P Wang <wangmp@apple.com> | 2008-10-18 02:49:28 +0000 |
---|---|---|
committer | Mon P Wang <wangmp@apple.com> | 2008-10-18 02:49:28 +0000 |
commit | 7ae48ee2fb80b0a3ac6ad912b465a077c7591a19 (patch) | |
tree | a7aafeb26c0c37e39ea3a7a6da9bda46218474bd /lib/AST/Builtins.cpp | |
parent | e5582f08df3ede19d8bb182844aad60ab65ab237 (diff) |
Make llvm memory barrier available as an intrinsic
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57751 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Builtins.cpp')
-rw-r--r-- | lib/AST/Builtins.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/AST/Builtins.cpp b/lib/AST/Builtins.cpp index 3980d20521..1823ee6055 100644 --- a/lib/AST/Builtins.cpp +++ b/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(); |