Compute width/align of objc builtin types (id, etc)

for radar 8258797.

llvm-svn: 110047
This commit is contained in:
Fariborz Jahanian 2010-08-02 18:03:20 +00:00
parent d070128de5
commit 9c6a39e862

View File

@ -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: