You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The transpiler's HandleLdelemU1ComplexIndex throws when the array being accessed is not stored in a tracked local variable. The error occurs during transpilation of the crypto sample after closure inlining.
TranspileException: Array element access requires the array to be stored in a local variable.
at IL2NESWriter.HandleLdelemU1ComplexIndex() in IL2NESWriter.ArrayHandling.cs:line 530
at IL2NESWriter.HandleLdelemU1() in IL2NESWriter.ArrayHandling.cs:line 368
Expected behavior
The transpiler should handle ldelem.u1 when the array reference comes from patterns other than a simple ldloc, such as when the compiler reuses a register or optimizes array access in inlined code.
Problem
The transpiler's
HandleLdelemU1ComplexIndexthrows when the array being accessed is not stored in a tracked local variable. The error occurs during transpilation of the crypto sample after closure inlining.Expected behavior
The transpiler should handle
ldelem.u1when the array reference comes from patterns other than a simpleldloc, such as when the compiler reuses a register or optimizes array access in inlined code.Context