* mini.c (mono_bblock_insert_after_ins): Properly link up with the next
instruction in the ins==NULL case.
svn path=/trunk/mono/; revision=108550
+2008-07-22 Zoltan Varga <vargaz@gmail.com>
+
+ * mini.c (mono_bblock_insert_after_ins): Properly link up with the next
+ instruction in the ins==NULL case.
+
2008-07-23 Zoltan Varga <vargaz@gmail.com>
* mini-ops.h: Add OP_X86_OUTARG_ALIGN_STACK.
if (ins == NULL) {
ins = bb->code;
bb->code = ins_to_insert;
+
+ /* Link with next */
ins_to_insert->next = ins;
+ if (ins)
+ ins->prev = ins_to_insert;
+
if (bb->last_ins == NULL)
bb->last_ins = ins_to_insert;
} else {