projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6504758
)
[interp] fix another data.klass access. due to generics it has to be resolved with...
author
Bernhard Urban
<bernhard.urban@xamarin.com>
Wed, 8 Mar 2017 00:25:38 +0000
(
01:25
+0100)
committer
Bernhard Urban
<bernhard.urban@xamarin.com>
Wed, 8 Mar 2017 22:02:51 +0000
(23:02 +0100)
mono/mini/interp/transform.c
patch
|
blob
|
history
diff --git
a/mono/mini/interp/transform.c
b/mono/mini/interp/transform.c
index 02f08681544190f321d7b80d526a97261d1c7acf..462619f1475c1096587ff4654ce56387330bcc76 100644
(file)
--- 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);