[aot] Applied patch from "Andrés G. Aragoneses" <knocte@gmail.com>: Add types from...
authorZoltan Varga <vargaz@gmail.com>
Wed, 5 Feb 2014 23:52:13 +0000 (00:52 +0100)
committerZoltan Varga <vargaz@gmail.com>
Wed, 5 Feb 2014 23:52:13 +0000 (00:52 +0100)
mono/mini/aot-compiler.c

index 1849b816a7fc28e7c36d4b06c709e9f4e6e58d18..29ef4b5f608a284063a520814a9e33512a08d50c 100644 (file)
@@ -3815,6 +3815,9 @@ check_type_depth (MonoType *t, int depth)
        return FALSE;
 }
 
+static void
+add_types_from_method_header (MonoAotCompile *acfg, MonoMethod *method);
+
 /*
  * add_generic_class:
  *
@@ -3875,9 +3878,11 @@ add_generic_class_with_depth (MonoAotCompile *acfg, MonoClass *klass, int depth,
                        continue;
                }
                
-               if (mono_method_is_generic_sharable_full (method, FALSE, FALSE, use_gsharedvt))
+               if (mono_method_is_generic_sharable_full (method, FALSE, FALSE, use_gsharedvt)) {
                        /* Already added */
+                       add_types_from_method_header (acfg, method);
                        continue;
+               }
 
                if (method->is_generic)
                        /* FIXME: */