Skip to content

Commit 1ebb378

Browse files
committed
Replaced break with return null
1 parent 5bbe5c4 commit 1ebb378

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/mono/mono/mini/simd-intrinsics.c

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3067,7 +3067,6 @@ emit_vector_2_3_4 (MonoCompile *cfg, MonoMethod *cmethod, MonoMethodSignature *f
30673067
}
30683068
case SN_CopyTo:
30693069
return NULL;
3070-
break;
30713070
case SN_Clamp: {
30723071
if (!(!fsig->hasthis && fsig->param_count == 3 && mono_metadata_type_equal (fsig->ret, type) && mono_metadata_type_equal (fsig->params [0], type) && mono_metadata_type_equal (fsig->params [1], type) && mono_metadata_type_equal (fsig->params [2], type)))
30733072
return NULL;
@@ -3107,9 +3106,10 @@ emit_vector_2_3_4 (MonoCompile *cfg, MonoMethod *cmethod, MonoMethodSignature *f
31073106
default:
31083107
g_assert_not_reached ();
31093108
}
3109+
#else
3110+
return NULL;
31103111
#endif
31113112
}
3112-
break;
31133113
case SN_Length:
31143114
case SN_LengthSquared: {
31153115
#if defined (TARGET_ARM64)
@@ -3135,9 +3135,10 @@ emit_vector_2_3_4 (MonoCompile *cfg, MonoMethod *cmethod, MonoMethodSignature *f
31353135
default:
31363136
g_assert_not_reached ();
31373137
}
3138+
#else
3139+
return NULL;
31383140
#endif
31393141
}
3140-
break;
31413142
case SN_Lerp: {
31423143
#if defined (TARGET_ARM64)
31433144
MonoInst* v1 = args [1];
@@ -3156,9 +3157,10 @@ emit_vector_2_3_4 (MonoCompile *cfg, MonoMethod *cmethod, MonoMethodSignature *f
31563157
result->inst_c1 = MONO_TYPE_R4;
31573158

31583159
return result;
3160+
#else
3161+
return NULL;
31593162
#endif
31603163
}
3161-
break;
31623164
case SN_Normalize: {
31633165
#if defined (TARGET_ARM64)
31643166
MonoInst* vec = args[0];
@@ -3187,9 +3189,10 @@ emit_vector_2_3_4 (MonoCompile *cfg, MonoMethod *cmethod, MonoMethodSignature *f
31873189
normalized_vec->inst_c1 = MONO_TYPE_R4;
31883190

31893191
return normalized_vec;
3192+
#else
3193+
return NULL;
31903194
#endif
31913195
}
3192-
break;
31933196
case SN_Conjugate: {
31943197
#if defined (TARGET_ARM64)
31953198
float value[4];
@@ -3202,9 +3205,10 @@ emit_vector_2_3_4 (MonoCompile *cfg, MonoMethod *cmethod, MonoMethodSignature *f
32023205
result->inst_c0 = OP_FMUL;
32033206
result->inst_c1 = MONO_TYPE_R4;
32043207
return result;
3208+
#else
3209+
return NULL;
32053210
#endif
32063211
}
3207-
break;
32083212
default:
32093213
g_assert_not_reached ();
32103214
}

0 commit comments

Comments
 (0)