Author: zoltan
Date: 2008-01-16 12:47:25 -0500 (Wed, 16 Jan 2008)
New Revision: 93067
Modified:
trunk/mcs/mcs/ChangeLog
trunk/mcs/mcs/statement.cs
Log:
2008-01-16 Zoltan Varga <[EMAIL PROTECTED]>
* statement.cs: Avoid declaring an IL variable for this_variable since
it is
not accessed from the generated IL.
Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog 2008-01-16 17:43:09 UTC (rev 93066)
+++ trunk/mcs/mcs/ChangeLog 2008-01-16 17:47:25 UTC (rev 93067)
@@ -1,3 +1,8 @@
+2008-01-16 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * statement.cs: Avoid declaring an IL variable for this_variable since
it is
+ not accessed from the generated IL.
+
2008-01-14 Marek Safar <[EMAIL PROTECTED]>
* typemanager.cs, lambda.cs, parameter.cs, ecore.cs, class.cs,
delegate.cs,
Modified: trunk/mcs/mcs/statement.cs
===================================================================
--- trunk/mcs/mcs/statement.cs 2008-01-16 17:43:09 UTC (rev 93066)
+++ trunk/mcs/mcs/statement.cs 2008-01-16 17:47:25 UTC (rev 93067)
@@ -2797,6 +2797,10 @@
public override void EmitMeta (EmitContext ec)
{
+ // Avoid declaring an IL variable for this_variable
since it is not accessed
+ // from the generated IL
+ if (this_variable != null)
+ Variables.Remove ("this");
base.EmitMeta (ec);
parameters.ResolveVariable (this);
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches