From 56b83f489b42e076bd7259cf42b4c684e63c7785 Mon Sep 17 00:00:00 2001 From: Jay Krell Date: Wed, 28 Aug 2019 03:11:56 -0700 Subject: [PATCH] [interp] Minor cleanup of `stackval_from_data`. Compiler can do it. (#16534) I missed this earlier cleaning stackval_to_data. --- mono/mini/interp/interp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mono/mini/interp/interp.c b/mono/mini/interp/interp.c index f04bccc1e1d..7b1dbf93e1b 100644 --- a/mono/mini/interp/interp.c +++ b/mono/mini/interp/interp.c @@ -626,9 +626,9 @@ get_virtual_method_fast (InterpMethod *imethod, MonoVTable *vtable, int offset) } static void inline -stackval_from_data (MonoType *type_, stackval *result, const void *data, gboolean pinvoke) +stackval_from_data (MonoType *type, stackval *result, const void *data, gboolean pinvoke) { - MonoType *type = mini_native_type_replace_type (type_); + type = mini_native_type_replace_type (type); if (type->byref) { switch (type->type) { case MONO_TYPE_OBJECT: -- 2.11.4.GIT