Author: marek
Date: 2007-11-07 15:30:56 -0500 (Wed, 07 Nov 2007)
New Revision: 89159
Modified:
trunk/mcs/mcs/ChangeLog
trunk/mcs/mcs/expression.cs
Log:
2007-11-07 Marek Safar <[EMAIL PROTECTED]>
A fix for bug #336651
* expression.cs: Fixed a crash when probing is on
Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog 2007-11-07 20:28:43 UTC (rev 89158)
+++ trunk/mcs/mcs/ChangeLog 2007-11-07 20:30:56 UTC (rev 89159)
@@ -1,5 +1,10 @@
2007-11-07 Marek Safar <[EMAIL PROTECTED]>
+ A fix for bug #336651
+ * expression.cs: Fixed a crash when probing is on.
+
+2007-11-07 Marek Safar <[EMAIL PROTECTED]>
+
A fix for bug #324242
* covert.cs: Added a conversion from any nullable-type with an
underlying enum-type to the type System.Enum.
Modified: trunk/mcs/mcs/expression.cs
===================================================================
--- trunk/mcs/mcs/expression.cs 2007-11-07 20:28:43 UTC (rev 89158)
+++ trunk/mcs/mcs/expression.cs 2007-11-07 20:30:56 UTC (rev 89159)
@@ -3834,6 +3834,10 @@
public bool IsAssigned (EmitContext ec, Location loc)
{
+ // HACK: Variables are not captured in probing mode
+ if (ec.IsInProbingMode)
+ return true;
+
if (!ec.DoFlowAnalysis || !is_out ||
ec.CurrentBranching.IsAssigned (VariableInfo))
return true;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches