[Mono-bugs] [Bug 381559] trivially simple reproduction of Invalid IL code bug ( anonymous methods + string concat)
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Apr 18 21:13:26 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=381559
User zorander at gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=381559#c1
Brian Luczkiewicz <zorander at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |zorander at gmail.com
--- Comment #1 from Brian Luczkiewicz <zorander at gmail.com> 2008-04-18 19:13:25 MST ---
This fixes it for me and doesn't break tests as best as I can tell.
--- base-1.9/mcs/mcs/expression.cs 2008-02-20 18:10:42.000000000 -0500
+++ mono-1.9/mcs/mcs/expression.cs 2008-04-18 21:08:32.000000000 -0400
@@ -3701,13 +3701,10 @@
source, loc);
ILGenerator ig = ec.ig;
- prepared = prepare_for_load;
+
+ prepared = prepare_for_load && !Variable.HasInstance;
Variable.EmitInstance (ec);
- if (prepare_for_load) {
- if (Variable.HasInstance)
- ig.Emit (OpCodes.Dup);
- }
if (IsRef)
Variable.Emit (ec);
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list