[cfe-commits] r62335 - /cfe/trunk/lib/CodeGen/CGExprScalar.cpp
Fariborz Jahanian
fjahanian at apple.com
Fri Jan 16 11:02:53 PST 2009
Author: fjahanian
Date: Fri Jan 16 13:02:53 2009
New Revision: 62335
URL: http://llvm.org/viewvc/llvm-project?rev=62335&view=rev
Log:
Changed the API yet again.
Modified:
cfe/trunk/lib/CodeGen/CGExprScalar.cpp
Modified: cfe/trunk/lib/CodeGen/CGExprScalar.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprScalar.cpp?rev=62335&r1=62334&r2=62335&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprScalar.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprScalar.cpp Fri Jan 16 13:02:53 2009
@@ -688,11 +688,9 @@
}
if (TypeToSize->isObjCInterfaceType()) {
ObjCInterfaceDecl *OI = TypeToSize->getAsObjCInterfaceType()->getDecl();
- const RecordDecl *RD = CGF.getContext().addRecordToClass(OI);
- const Type *Key =
- CGF.getContext().getTagDeclType(
- const_cast<TagDecl*>(dyn_cast<TagDecl>(RD))).getTypePtr();
- TypeToSize = QualType(Key->getAsRecordType(), 0);
+ RecordDecl *RD = const_cast<RecordDecl*>(
+ CGF.getContext().addRecordToClass(OI));
+ TypeToSize = CGF.getContext().getTagDeclType(static_cast<TagDecl*>(RD));
}
std::pair<uint64_t, unsigned> Info = CGF.getContext().getTypeInfo(TypeToSize);
More information about the cfe-commits
mailing list