[runtime] Simplify mono-debug.c since we no longer have to serialize a lot of the...
[mono.git] / mono / mini / branch-opts.c
index 44a78aa476b140cc42a96dad49af9be9fb3865e3..2be95e736424d43c562b3e52612273e3372788f1 100644 (file)
@@ -1299,7 +1299,7 @@ mono_optimize_branches (MonoCompile *cfg)
 
                                        /* branches to the following block can be removed */
                                        if (bb->last_ins && bb->last_ins->opcode == OP_BR && !bbn->out_of_line) {
-                                               bb->last_ins->opcode = OP_NOP;
+                                               NULLIFY_INS (bb->last_ins);
                                                changed = TRUE;
                                                if (cfg->verbose_level > 2)
                                                        g_print ("br removal triggered %d -> %d\n", bb->block_num, bbn->block_num);