diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-08-02 18:03:20 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-08-02 18:03:20 +0000 |
commit | e04f5fc25cf49e8a5b836459d836c20dc3229a95 (patch) | |
tree | 5b70155f2eed83d8cc3b6a104ad1d965c11dfcbe | |
parent | 7362aa30c578c8a304d8e48fe1c1bbfdbd37e6ed (diff) |
Compute width/align of objc builtin types (id, etc)
for radar 8258797.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110047 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/AST/ASTContext.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index ef1138eee7..43873a4efd 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -680,6 +680,12 @@ ASTContext::getTypeInfo(const Type *T) { Width = Target.getPointerWidth(0); // C++ 3.9.1p11: sizeof(nullptr_t) Align = Target.getPointerAlign(0); // == sizeof(void*) break; + case BuiltinType::ObjCId: + case BuiltinType::ObjCClass: + case BuiltinType::ObjCSel: + Width = Target.getPointerWidth(0); + Align = Target.getPointerAlign(0); + break; } break; case Type::ObjCObjectPointer: |