* dwarfwriter.c (mono_dwarf_writer_emit_method): Handle --regression
correctly.
* mini-llvm.c (type_to_llvm_type): Avoid accessing t->data.klass for
GENERICINST.
svn path=/trunk/mono/; revision=132045
+2009-04-17 Zoltan Varga <vargaz@gmail.com>
+
+ * dwarfwriter.c (mono_dwarf_writer_emit_method): Handle --regression
+ correctly.
+
+ * mini-llvm.c (type_to_llvm_type): Avoid accessing t->data.klass for
+ GENERICINST.
+
2009-04-17 Atsushi Enomoto <atsushi@ximian.com>
* mini-exceptions.c : add thread id to EXCEPTION trace message.
/* Emit line number info */
if (code && debug_info)
- emit_line_number_info (w, method, code, code_size, debug_info);
+ /* != could happen when using --regression */
+ if (debug_info->code_start == code)
+ emit_line_number_info (w, method, code, code_size, debug_info);
emit_line (w);
}
MonoClass *klass;
LLVMTypeRef ltype;
- if (t->data.klass->enumtype)
- return LLVMInt32Type ();
-
klass = mono_class_from_mono_type (t);
+
+ if (klass->enumtype)
+ return LLVMInt32Type ();
ltype = g_hash_table_lookup (llvm_types, klass);
if (!ltype) {
ltype = LLVMArrayType (LLVMInt8Type (), mono_class_value_size (klass, NULL));