From 6800fd6ffe160236ef58e6eccc4fb2117b2ff179 Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Wed, 14 Jun 2023 19:11:01 -0400 Subject: [PATCH] Fix a warning. (#87573) --- src/mono/mono/mini/mini-arm64.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mono/mono/mini/mini-arm64.c b/src/mono/mono/mini/mini-arm64.c index 1a155b3116497..491f02f6e4044 100644 --- a/src/mono/mono/mini/mini-arm64.c +++ b/src/mono/mono/mini/mini-arm64.c @@ -1535,14 +1535,13 @@ add_valuetype (CallInfo *cinfo, ArgInfo *ainfo, MonoType *t, gboolean is_return) int i, size, align_size, nregs, nfields, esize; int field_offsets [16]; guint32 align; - MonoClass *klass; - klass = mono_class_from_mono_type_internal (t); size = mini_type_stack_size_full (t, &align, cinfo->pinvoke); align_size = ALIGN_TO (size, 8); /* FIXME: gshared, gsharedvt, dyncalls */ #if 0 + MonoClass *klass = mono_class_from_mono_type_internal (t); if (m_class_is_simd_type (klass) && size <= 16 && !cinfo->pinvoke && !is_return && cinfo->fr < FP_PARAM_REGS) { ainfo->storage = ArgInSIMDReg; ainfo->reg = cinfo->fr;