Author: martin
Date: 2005-04-30 05:26:31 -0400 (Sat, 30 Apr 2005)
New Revision: 43819
Modified:
trunk/mcs/mcs/
trunk/mcs/mcs/ChangeLog
trunk/mcs/mcs/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.
Property changes on: trunk/mcs/mcs
___________________________________________________________________
Name: gmcs
- Latest GMCS merging status:
- merged everything until r43314 (on April 20th).
- r37007 will never be merged; it's a mcs-only change.
- r43124 doesn't work in GMCS; not merged yet.
+ Latest GMCS merging status:
- merged everything until r43640 (on April 27th).
- r37007 will never be merged; it's a mcs-only change.
- r43124 doesn't work in GMCS; not merged yet.
Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog 2005-04-30 07:54:19 UTC (rev 43818)
+++ trunk/mcs/mcs/ChangeLog 2005-04-30 09:26:31 UTC (rev 43819)
@@ -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/mcs/statement.cs
===================================================================
--- trunk/mcs/mcs/statement.cs 2005-04-30 07:54:19 UTC (rev 43818)
+++ trunk/mcs/mcs/statement.cs 2005-04-30 09:26:31 UTC (rev 43819)
@@ -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