[Mono-bugs] [Bug 576343] Reflection.Emit emiting bad IL opcodes

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Feb 5 16:04:30 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=576343

http://bugzilla.novell.com/show_bug.cgi?id=576343#c1


Zoltan Varga <vargaz at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vargaz at gmail.com

--- Comment #1 from Zoltan Varga <vargaz at gmail.com> 2010-02-05 21:04:29 UTC ---
This seems to only happen under 2.6, under svn head it works fine.

Under 2.6 I get:

converting shared method FSI_0001:g2 at 6<FSI_0001/B> (FSI_0001/B,int)             
creating vars
created temp 0 (R16) of type b
created temp 1 (R17) of type System.Int32
        arg [0]:  arg R16 <-
        arg [1]:  arg R17 <-
creating locals
created temp 2 (R18) of type System.Int32
locals done
method to IR FSI_0001:g2 at 6<b> (b,int)
created temp 3 (R19) of type System.IntPtr
converting (in B2: stack: 0) IL_0000: nop
converting (in B2: stack: 0) IL_0001: ldarg     1
converting (in B2: stack: 1) IL_0005: ldc.i4    0
converting (in B2: stack: 2) IL_000a: blt       IL_000f
converting (in B4: stack: 0) IL_000f: br        IL_0014
converting (in B5: stack: 0) IL_0014: ldarg     1
converting (in B5: stack: 1) IL_0018: ldc.i4    1
converting (in B5: stack: 2) IL_001d: sub
converting (in B5: stack: 1) IL_001e: stloc     0
converting (in B5: stack: 0) IL_0022: ldarg     0
converting (in B5: stack: 1) IL_0026: ldloc     0
converting (in B5: stack: 2) IL_002a: ldc.i4    1
converting (in B5: stack: 3) IL_002f: sub
System.InvalidProgramException: Invalid IL code in FSI_0001:g2 at 6<b> (b,int):
IL_0030: unused33

-- 
Configure bugmail: http://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