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

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

[Dotgnu-pnet-commits] CVS: pnet/codegen cg_stmt.tc,1.35,1.36


From: Gopal.V <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/codegen cg_stmt.tc,1.35,1.36
Date: Sat, 28 Dec 2002 13:11:24 -0500

Update of /cvsroot/dotgnu-pnet/pnet/codegen
In directory subversions:/tmp/cvs-serv29076/codegen

Modified Files:
        cg_stmt.tc 
Log Message:
Fix the ILNode_EndsInReturnImpl for infinite loops and also fix a compiletime 
warning.


Index: cg_stmt.tc
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/codegen/cg_stmt.tc,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -r1.35 -r1.36
*** cg_stmt.tc  28 Dec 2002 17:17:02 -0000      1.35
--- cg_stmt.tc  28 Dec 2002 18:11:19 -0000      1.36
***************
*** 554,558 ****
  {
        int flags;
!       if(!(node->cond) || yyisa(node->cond, ILNode_True))
        {
                /* This may be an infinite loop: check for a contained "break" 
*/
--- 554,563 ----
  {
        int flags;
!       ILEvalValue evalue;
!       if(!(node->cond) || 
!               ( ILNode_EvalConst(node->cond,info,&evalue) &&
!                 (evalue.valueType == ILMachineType_Boolean) &&
!                 (evalue.un.i4Value == 1) /* true */
!               ))
        {
                /* This may be an infinite loop: check for a contained "break" 
*/




reply via email to

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