2009-07-01 Zoltan Varga <vargaz@gmail.com>
[mono.git] / mono / mini / decompose.c
index 5d244c1ec29804b8a197e0b70487eebd5ef1a12d..f6f51b08aa79a70fa991109a82a57b07d4bf1891 100644 (file)
@@ -1148,7 +1148,7 @@ mono_decompose_vtype_opts (MonoCompile *cfg)
 
                                                /* Save the result */
                                                if (dest_var->backend.is_pinvoke)
-                                                       size = mono_class_native_size (dest->inst_vtype->data.klass, NULL);
+                                                       size = mono_class_native_size (mono_class_from_mono_type (dest_var->inst_vtype), NULL);
                                                else
                                                        size = mono_type_size (dest_var->inst_vtype, NULL);
                                                switch (size) {