dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnet/engine layout.c,1.27,1.28


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/engine layout.c,1.27,1.28
Date: Sat, 14 Jun 2003 02:34:26 -0400

Update of /cvsroot/dotgnu-pnet/pnet/engine
In directory subversions:/tmp/cvs-serv30656/engine

Modified Files:
        layout.c 
Log Message:


Check for synthetic pointer types, so that "sizeof(X *) != 0" (Bug #3979).


Index: layout.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/engine/layout.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -r1.27 -r1.28
*** layout.c    6 Jun 2003 06:57:49 -0000       1.27
--- layout.c    14 Jun 2003 06:34:24 -0000      1.28
***************
*** 177,181 ****
                /* Lay out a value type by getting the full size and alignment
                   of the class that underlies the value type */
!               return LayoutClass(ILClassResolve(ILType_ToValueType(type)), 
layout);
        }
        else
--- 177,190 ----
                /* Lay out a value type by getting the full size and alignment
                   of the class that underlies the value type */
!               ILClass *classInfo = ILClassResolve(ILType_ToValueType(type));
!               ILType *synType = ILClassGetSynType(classInfo);
!               if(synType == 0)
!               {
!                       return LayoutClass(classInfo, layout);
!               }
!               else
!               {
!                       return LayoutType(ILTypeStripPrefixes(synType), layout);
!               }
        }
        else





reply via email to

[Prev in Thread] Current Thread [Next in Thread]