[cfe-commits] r62335 - /cfe/trunk/lib/CodeGen/CGExprScalar.cpp

Chris Lattner clattner at apple.com
Fri Jan 16 11:06:14 PST 2009


On Jan 16, 2009, at 11:02 AM, Fariborz Jahanian wrote:

> 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.

Thanks Fariborz!

-Chris

>
>
> 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);
>
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list