Author: martin
Date: 2005-04-30 05:26:58 -0400 (Sat, 30 Apr 2005)
New Revision: 43820

Modified:
   trunk/mcs/gmcs/ChangeLog
   trunk/mcs/gmcs/statement.cs
Log:
2005-04-30  Martin Baulig  <[EMAIL PROTECTED]>

        * statement.cs (Switch.SimpleSwitchEmit): Reset `default_at_end'
        at the beginning of a SwitchSection.  Fix #73335.



Modified: trunk/mcs/gmcs/ChangeLog
===================================================================
--- trunk/mcs/gmcs/ChangeLog    2005-04-30 09:26:31 UTC (rev 43819)
+++ trunk/mcs/gmcs/ChangeLog    2005-04-30 09:26:58 UTC (rev 43820)
@@ -1,3 +1,8 @@
+2005-04-30  Martin Baulig  <[EMAIL PROTECTED]>
+
+       * statement.cs (Switch.SimpleSwitchEmit): Reset `default_at_end'
+       at the beginning of a SwitchSection.  Fix #73335.
+
 2005-04-27  Marek Safar  <[EMAIL PROTECTED]>
 
        Fix #74378

Modified: trunk/mcs/gmcs/statement.cs
===================================================================
--- trunk/mcs/gmcs/statement.cs 2005-04-30 09:26:31 UTC (rev 43819)
+++ trunk/mcs/gmcs/statement.cs 2005-04-30 09:26:58 UTC (rev 43820)
@@ -2866,12 +2866,14 @@
                        ig.Emit (OpCodes.Ldloc, val);
                        ig.Emit (OpCodes.Call, 
TypeManager.string_isinterneted_string);
                        ig.Emit (OpCodes.Stloc, val);
-               
+
                        int section_count = Sections.Count;
                        for (int section = 0; section < section_count; 
section++){
                                SwitchSection ss = (SwitchSection) Sections 
[section];
                                Label sec_begin = ig.DefineLabel ();
 
+                               default_at_end = false;
+
                                if (pending_goto_end)
                                        ig.Emit (OpCodes.Br, end_of_switch);
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to