Author: marek
Date: 2007-06-12 15:12:46 -0400 (Tue, 12 Jun 2007)
New Revision: 79328
Modified:
trunk/mcs/mcs/ChangeLog
trunk/mcs/mcs/statement.cs
Log:
2007-06-12 Marek Safar <[EMAIL PROTECTED]>
A fix for bug #81807
* statement.cs(Switch.TableSwitchEmit): Define null label when it's not
present inside switch statement and it is required by nullable check.
Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog 2007-06-12 18:49:40 UTC (rev 79327)
+++ trunk/mcs/mcs/ChangeLog 2007-06-12 19:12:46 UTC (rev 79328)
@@ -1,5 +1,11 @@
2007-06-12 Marek Safar <[EMAIL PROTECTED]>
+ A fix for bug #81807
+ * statement.cs(Switch.TableSwitchEmit): Define null label when it's not
+ present inside switch statement and it is required by nullable check.
+
+2007-06-12 Marek Safar <[EMAIL PROTECTED]>
+
A fix for bug #81840
* ecore.cs (SimpleName.ResolveAsTypeStep): Look for non-generic type
when type matching fails.
Modified: trunk/mcs/mcs/statement.cs
===================================================================
--- trunk/mcs/mcs/statement.cs 2007-06-12 18:49:40 UTC (rev 79327)
+++ trunk/mcs/mcs/statement.cs 2007-06-12 19:12:46 UTC (rev 79328)
@@ -3349,7 +3349,11 @@
if (!fFoundDefault) {
ig.MarkLabel (lblDefault);
+ if (HaveUnwrap && !fFoundNull) {
+ ig.MarkLabel (null_target);
+ }
}
+
ig.MarkLabel (lblEnd);
}
//
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches