* mini-amd64.c (add_valuetype): Use a dummy gsctx if we didn't receive
one from the caller.
svn path=/trunk/mono/; revision=111050
2008-08-20 Zoltan Varga <vargaz@gmail.com>
+ * mini-amd64.c (add_valuetype): Use a dummy gsctx if we didn't receive
+ one from the caller.
+
* aot-runtime.c (decode_generic_inst): New function to decode and
return a interned generic inst.
(decode_klass_ref): Use it.
ArgumentClass args [2];
MonoMarshalType *info;
MonoClass *klass;
+ MonoGenericSharingContext tmp_gsctx;
+
+ /*
+ * The gsctx currently contains no data, it is only used for checking whenever
+ * open types are allowed, some callers like mono_arch_get_argument_info ()
+ * don't pass it to us, so work around that.
+ */
+ if (!gsctx)
+ gsctx = &tmp_gsctx;
klass = mono_class_from_mono_type (type);
if (sig->pinvoke)