Fix MONO_TYPE_VALUETYPE processing.
authorNeale Ferguson <neale@mono-cvs.ximian.com>
Sat, 28 Apr 2007 02:06:43 +0000 (02:06 -0000)
committerNeale Ferguson <neale@mono-cvs.ximian.com>
Sat, 28 Apr 2007 02:06:43 +0000 (02:06 -0000)
svn path=/trunk/mono/; revision=76425

mono/mini/ChangeLog
mono/mini/mini-s390x.c

index 587ff186391d927ddb853cb617ad08ec16d4bf94..14de7d6482c2423fb8f9ebd6f29e05ecf10b0513 100644 (file)
@@ -1,3 +1,7 @@
+2007-04-27  Neale Ferguson <neale@sinenomine.net>
+
+       * mini-s390x.c: Fix MONO_TYPE_VALUETYPE processing.
+
 2007-04-27  Wade Berrier  <wberrier@novell.com>
 
        * mini-s390x.c: Remove redeclaration of CompRelation and CompType (defined in 
index 8f50aa3db422c2f5f0b5e82116d5ee08b0a2c088..f30ca2a9397d375b69449df809f44d150ce6a589 100644 (file)
@@ -1375,8 +1375,8 @@ enum_retvalue:
                        /* Fall through */
                case MONO_TYPE_VALUETYPE: {
                        MonoClass *klass = mono_class_from_mono_type (sig->ret);
-                       if (sig->ret->data.klass->enumtype) {
-                               simpletype = sig->ret->data.klass->enum_basetype->type;
+                       if (klass->enumtype) {
+                               simpletype = klass->enum_basetype->type;
                                goto enum_retvalue;
                        }
                        if (sig->pinvoke)