[jit] Fix -O=precomp option to skip generic methods and not crash.
authorPaolo Molaro <lupus@oddwiz.org>
Thu, 16 Oct 2014 14:39:33 +0000 (10:39 -0400)
committerPaolo Molaro <lupus@oddwiz.org>
Thu, 16 Oct 2014 14:40:45 +0000 (10:40 -0400)
mono/mini/mini.c

index 6b4d8bfddad4da33b1c0fa13af219415364cdec8..1ab0ac22f2047393c5087998fd3cb0ae948fc6e6 100755 (executable)
@@ -7955,6 +7955,8 @@ mono_precompile_assembly (MonoAssembly *ass, void *user_data)
                method = mono_get_method (image, MONO_TOKEN_METHOD_DEF | (i + 1), NULL);
                if (method->flags & METHOD_ATTRIBUTE_ABSTRACT)
                        continue;
+               if (method->is_generic || method->klass->generic_container)
+                       continue;
 
                count++;
                if (mini_verbose > 1) {