[arm64] Assert that the displacement is not out of range int he b/bl macros, instead...
[mono.git] / mono / arch / s390x / tramp.c
index 37b8de5c328a3705a524a5696b5e75429356bd38..fe9f3107a34af95e19459e74d5244d712a0df219 100644 (file)
@@ -151,6 +151,7 @@ enum_retvalue:
                case MONO_TYPE_OBJECT:
                case MONO_TYPE_R4:
                case MONO_TYPE_R8:
+               case MONO_TYPE_PTR:
                case MONO_TYPE_SZARRAY:
                case MONO_TYPE_ARRAY:
                case MONO_TYPE_STRING:
@@ -644,7 +645,7 @@ printf("Returning %d bytes for type %d (%d)\n",retSize,simpletype,sig->pinvoke);
                        case 8:
                                s390_stg (p, s390_r2, 0, s390_r8, 0);
                                break;
-                       default:
+                       default: ;
                                /*------------------------------------------*/
                                /* The callee has already placed the result */
                                /* in the required area                     */
@@ -1110,7 +1111,7 @@ mono_arch_create_method_pointer (MonoMethod *method)
                                case 8:
                                        s390_lg (p, s390_r2, 0, s390_r10, 0);
                                        break;
-                               default:
+                               default: ;
                                        /*-------------------------------------------------*/
                                        /* stackval_to_data has placed data in result area */
                                        /*-------------------------------------------------*/