[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] pnet/cscc/csharp cs_stmt.tc,1.34,1.35
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] pnet/cscc/csharp cs_stmt.tc,1.34,1.35 |
Date: |
Wed, 12 Nov 2003 04:21:39 +0000 |
Update of /cvsroot/dotgnu-pnet/pnet/cscc/csharp
In directory subversions:/tmp/cvs-serv9326/cscc/csharp
Modified Files:
cs_stmt.tc
Log Message:
Fix switch statement fall-through detection for nested switch
statements (bug #6417) (applied by Rhys).
Index: cs_stmt.tc
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/cscc/csharp/cs_stmt.tc,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** cs_stmt.tc 31 May 2003 05:47:24 -0000 1.34
--- cs_stmt.tc 12 Nov 2003 04:21:37 -0000 1.35
***************
*** 737,747 ****
}
- /* The body must end in some kind of return or jump statement */
- if(!ILNodeEndsInFlowChange(((ILNode_SwitchSection
*)section)->stmt
- ,info))
- {
- CCErrorOnLine(yygetfilename(section),
yygetlinenum(section),
- "`switch' section falls
through");
- }
}
/* split into 2 passes to facilitate goto case
--- 737,740 ----
***************
*** 758,761 ****
--- 751,761 ----
&(((ILNode_SwitchSection
*)section)->stmt));
((ILNode_SwitchSection*)section)->visited=ILVisitMode_Done;
+ /* The body must end in some kind of return or jump statement */
+ if(!ILNodeEndsInFlowChange(((ILNode_SwitchSection
*)section)->stmt
+ ,info))
+ {
+ CCErrorOnLine(yygetfilename(section),
yygetlinenum(section),
+ "`switch' section falls
through");
+ }
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] pnet/cscc/csharp cs_stmt.tc,1.34,1.35,
Rhys Weatherley <address@hidden> <=