svn path=/trunk/mono/; revision=53658
[mono.git] / mono / mini / inssel-ppc.brg
index b9830dc38b91397fefa9af79cb3d3fb2316f9539..b3dfa7c307b605293db35b114c4209dda22c2dcf 100644 (file)
@@ -287,7 +287,7 @@ stmt: OP_OUTARG_VT (CEE_LDOBJ (base)) {
 */
 #ifdef __APPLE__
        if (vt->inst_vtype && MONO_TYPE_ISSTRUCT (vt->inst_vtype) && vt->inst_vtype->type != MONO_TYPE_TYPEDBYREF)
-           size =  mono_class_native_size (vt->inst_vtype->data.klass, NULL);
+           size =  mono_class_native_size (mono_class_from_mono_type (vt->inst_vtype), NULL);
        if (size == 2 || size == 1) {
                tmpr = mono_regstate_next_int (s->rs);
                if (size == 1)
@@ -328,7 +328,7 @@ stmt: OP_OUTARG_VT (reg) {
        if (nregs) {
                tree->opcode = OP_SETREG;
                tree->dreg = start_reg;
-               tree->sreg1 = state->left->tree->dreg;
+               tree->sreg1 = state->left->reg1;
                mono_bblock_add_inst (s->cbb, tree);
        } else {
                g_assert_not_reached ();