[llvm] Fix a problem introduced by 4a685f44c8dec120ad71efa873c9255b062fccc9, the...
authorZoltan Varga <vargaz@gmail.com>
Tue, 21 Jul 2015 22:11:31 +0000 (18:11 -0400)
committerZoltan Varga <vargaz@gmail.com>
Tue, 21 Jul 2015 22:11:38 +0000 (18:11 -0400)
mono/mini/mini-llvm.c

index fe6ac96dad03b8837dea296e2fd506e0bd792291..76c38f59f79fdb50092f3d36fd6ed0faecc2d5b3 100644 (file)
@@ -1195,7 +1195,7 @@ sig_to_llvm_sig_full (EmitContext *ctx, MonoMethodSignature *sig, LLVMCallInfo *
                case LLVMArgVtypeAsScalar:
                        /* LLVM models this by returning an int */
                        g_assert (cinfo->ret.nslots == 1 || cinfo->ret.nslots == 2);
-                       ret_type = LLVMIntType (cinfo->ret.nslots * sizeof (mgreg_t));
+                       ret_type = LLVMIntType (cinfo->ret.nslots * sizeof (mgreg_t) * 8);
                        break;
                case LLVMArgFpStruct: {
                        /* Vtype returned as a fp struct */