mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-27 15:41:46 +00:00
Compute width/align of objc builtin types (id, etc)
for radar 8258797. llvm-svn: 110047
This commit is contained in:
parent
d070128de5
commit
9c6a39e862
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user