[Mono-devel-list] incorrect code generated by mcs
Miguel de Icaza
miguel at ximian.com
Tue Nov 4 18:46:48 EST 2003
Hello,
> I'm trying to get mini to work on 64b and ran accross this problem:
>
> for 'int i = array.Length;' mcs generates:
> ldlen
> stloc.0
>
> it really should generate:
> ldlen
> conv.i4
> stloc.0
>
> loc0 is of type int32 and my modified mini cannot match 'ldind.i4
> (regvar) (ldlen (...))'. (cannot store a nati into an int32)
Fixed on CVS.
Miguel
More information about the Mono-devel-list
mailing list