[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnet/cscc/csharp cs_invoke.tc,1.23,1.24
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/cscc/csharp cs_invoke.tc,1.23,1.24 |
Date: |
Sun, 13 Apr 2003 06:33:23 -0400 |
Update of /cvsroot/dotgnu-pnet/pnet/cscc/csharp
In directory subversions:/tmp/cvs-serv12326/cscc/csharp
Modified Files:
cs_invoke.tc
Log Message:
VarArgElemSem: replace the "null" type with "System.Object"
in vararg parameter lists.
Index: cs_invoke.tc
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/cscc/csharp/cs_invoke.tc,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -r1.23 -r1.24
*** cs_invoke.tc 3 Apr 2003 22:46:00 -0000 1.23
--- cs_invoke.tc 13 Apr 2003 10:33:21 -0000 1.24
***************
*** 984,987 ****
--- 984,988 ----
ILNode_Argument *arg = (ILNode_Argument *)node;
CSSemValue value;
+ ILType *argType;
if(arg->modifier == ILParamMod_empty)
{
***************
*** 993,997 ****
return 0;
}
! if(!ILTypeAddParam(info->context, signature,
CSSemGetType(value)))
{
CCOutOfMemory();
--- 994,1004 ----
return 0;
}
! argType = CSSemGetType(value);
! if(argType == ILType_Null)
! {
! /* Replace the null type with "System.Object" */
! argType = ILFindSystemType(info, "Object");
! }
! if(!ILTypeAddParam(info->context, signature, argType))
{
CCOutOfMemory();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/cscc/csharp cs_invoke.tc,1.23,1.24,
Rhys Weatherley <address@hidden> <=