[cfe-commits] r110047 - /cfe/trunk/lib/AST/ASTContext.cpp
Fariborz Jahanian
fjahanian at apple.com
Mon Aug 2 11:03:20 PDT 2010
Author: fjahanian
Date: Mon Aug 2 13:03:20 2010
New Revision: 110047
URL: http://llvm.org/viewvc/llvm-project?rev=110047&view=rev
Log:
Compute width/align of objc builtin types (id, etc)
for radar 8258797.
Modified:
cfe/trunk/lib/AST/ASTContext.cpp
Modified: cfe/trunk/lib/AST/ASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTContext.cpp?rev=110047&r1=110046&r2=110047&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ASTContext.cpp (original)
+++ cfe/trunk/lib/AST/ASTContext.cpp Mon Aug 2 13:03:20 2010
@@ -680,6 +680,12 @@
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:
More information about the cfe-commits
mailing list