* reflection.c (ensure_complete_type): Check that reflection_info
is set, too. Fixes crash of corlib testsuite with -O=-all.
svn path=/trunk/mono/; revision=151570
+2010-02-12 Mark Probst <mark.probst@gmail.com>
+
+ * reflection.c (ensure_complete_type): Check that reflection_info
+ is set, too. Fixes crash of corlib testsuite with -O=-all.
+
2010-02-11 Rodrigo Kumpera <rkumpera@novell.com>
* attrdefs.h:
static void
ensure_complete_type (MonoClass *klass)
{
- if (klass->image->dynamic && !klass->wastypebuilder) {
+ if (klass->image->dynamic && !klass->wastypebuilder && klass->reflection_info) {
MonoReflectionTypeBuilder *tb = klass->reflection_info;
mono_domain_try_type_resolve (mono_domain_get (), NULL, (MonoObject*)tb);