diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-02-22 04:02:33 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-02-22 04:02:33 +0000 |
commit | 4bdf08770e75a068de2430e21a43b381aeb13b95 (patch) | |
tree | a7f2fbd43f33ce6fe21f60e713a9f3f92bf3dc10 /lib/AST/ASTContext.cpp | |
parent | c508203a278f6a9238fff46ae1f025b4b402b233 (diff) |
Enhance Evaluate to handle ObjC qualified id and class types; as far as
I know, these follow the exact same rules as pointers, so I just made
them use the same codepath. Someone more familiar with ObjC should
double-check this, though.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65261 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r-- | lib/AST/ASTContext.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index fce2289574..78f2a8a9ab 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -387,6 +387,7 @@ ASTContext::getTypeInfo(const Type *T) { // alignment requirements: getPointerInfo should take an AddrSpace. return getTypeInfo(QualType(cast<ExtQualType>(T)->getBaseType(), 0)); case Type::ObjCQualifiedId: + case Type::ObjCQualifiedClass: Width = Target.getPointerWidth(0); Align = Target.getPointerAlign(0); break; |