From 4339c540cab459d657c6f6172e964ec95fa5d59d Mon Sep 17 00:00:00 2001 From: Bernhard Urban Date: Wed, 8 Mar 2017 01:25:38 +0100 Subject: [PATCH] [interp] fix another data.klass access. due to generics it has to be resolved with a runtime helper --- mono/mini/interp/transform.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mono/mini/interp/transform.c b/mono/mini/interp/transform.c index 02f08681544..462619f1475 100644 --- a/mono/mini/interp/transform.c +++ b/mono/mini/interp/transform.c @@ -496,11 +496,11 @@ store_arg(TransformData *td, int n) mt = mint_type (type); if (mt == MINT_TYPE_VT) { gint32 size; - g_error ("data.klass"); + MonoClass *klass = mono_class_from_mono_type (type); if (mono_method_signature (td->method)->pinvoke) - size = mono_class_native_size (type->data.klass, NULL); + size = mono_class_native_size (klass, NULL); else - size = mono_class_value_size (type->data.klass, NULL); + size = mono_class_value_size (klass, NULL); ADD_CODE(td, MINT_STARG_VT); ADD_CODE(td, n); WRITE32(td, &size); -- 2.25.1