aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-09-28 21:45:01 +0000
committerDouglas Gregor <dgregor@apple.com>2009-09-28 21:45:01 +0000
commitd3a23b238a2b2c0f11e6ac4951c7410a8c5717bf (patch)
tree1a7aaa1077e65531f0b571b985a117deaf9903e5 /lib/AST/ASTContext.cpp
parent4eda2143f1543faa0399e69bad95756f08fbf0ff (diff)
Add all of the C99 complex builtins prefixed with __builtin_
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83020 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r--lib/AST/ASTContext.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp
index 48d1ce90b6..e0223b009f 100644
--- a/lib/AST/ASTContext.cpp
+++ b/lib/AST/ASTContext.cpp
@@ -4118,6 +4118,11 @@ static QualType DecodeTypeFromStr(const char *&Str, ASTContext &Context,
Type = Context.getVectorType(ElementType, NumElements);
break;
}
+ case 'X': {
+ QualType ElementType = DecodeTypeFromStr(Str, Context, Error, false);
+ Type = Context.getComplexType(ElementType);
+ break;
+ }
case 'P':
Type = Context.getFILEType();
if (Type.isNull()) {