* expression.cs (ArrayAccess.EmitStoreOpcode): Reverted the patch
from bug #31834, see the bug report for a testcase which is
miscompiled.
svn path=/trunk/mcs/; revision=8146
+2002-10-10 Martin Baulig <martin@gnome.org>
+
+ * expression.cs (ArrayAccess.EmitStoreOpcode): Reverted the patch
+ from bug #31834, see the bug report for a testcase which is
+ miscompiled.
+
2002-10-10 Martin Baulig <martin@gnome.org>
* codegen.cs (EmitContext.Breaks): Removed, we're now using the
{
t = TypeManager.TypeToCoreType (t);
if (TypeManager.IsEnumType (t) && t != TypeManager.enum_type)
- StoreFromPtr (ig, t);
- else if (t == TypeManager.byte_type || t == TypeManager.sbyte_type ||
+ t = TypeManager.EnumToUnderlying (t);
+ if (t == TypeManager.byte_type || t == TypeManager.sbyte_type ||
t == TypeManager.bool_type)
ig.Emit (OpCodes.Stelem_I1);
else if (t == TypeManager.short_type || t == TypeManager.ushort_type || t == TypeManager.char_type)