/[dotgnu-pnet]/pnet/cscc/csharp/cs_misc.tc
ViewVC logotype

Diff of /pnet/cscc/csharp/cs_misc.tc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17 by rweather, Wed Dec 3 04:47:13 2003 UTC revision 1.18 by ktreichel, Wed Oct 19 18:30:09 2005 UTC
# Line 191  ILNode_SemAnalysis(ILNode_SizeOf) Line 191  ILNode_SemAnalysis(ILNode_SizeOf)
191  {  {
192          CSSemValue value;          CSSemValue value;
193    
         /* Print an error or warning for this construct if necessary */  
         CCUnsafeMessage(info, (ILNode *)node, "unsafe `sizeof' operator");  
   
194          /* Get the semantic value for the sub-expression */          /* Get the semantic value for the sub-expression */
195          value = ILNode_SemAnalysis(node->expr, info, &(node->expr));          value = ILNode_SemAnalysis(node->expr, info, &(node->expr));
196    
197            /* sizeof(primitive) is safe in C# 2.0 */
198            if(!ILType_IsPrimitive(CSSemGetType(value)))
199            {
200                    /* Print an error or warning for this construct if necessary */
201                    CCUnsafeMessage(info, (ILNode *)node, "unsafe `sizeof' operator");
202            }
203    
204          /* Convert native types into their value type forms */          /* Convert native types into their value type forms */
205          if(CSSemIsType(value))          if(CSSemIsType(value))
206          {          {

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26