* ssa.c (visit_inst): Add support for OP_BR. Fixes #81946.
* generic.2.cs: Add new test case.
svn path=/trunk/mono/; revision=80730
+2007-06-25 Zoltan Varga <vargaz@gmail.com>
+
+ * ssa.c (visit_inst): Add support for OP_BR. Fixes #81946.
+
+ * generic.2.cs: Add new test case.
+
2007-06-25 Martin Baulig <martin@ximian.com>
Merged the `debugger-dublin' branch.
return 0;
}
+ public static int test_0_box_brtrue_opt () {
+ Foo<int> f = new Foo<int> (5);
+
+ f [123] = 5;
+
+ return 0;
+ }
+
public static int test_0_box_brtrue_opt_regress_81102 () {
if (new Foo<int>(5).ToString () == "null")
return 0;
public String Bar (String s) {
return s;
}
+
+ public int this [T1 key] {
+ set {
+ if (key == null)
+ throw new ArgumentNullException ("key");
+ }
+ }
readonly T1 m_t1;
}
}
}
}
+ } else if (inst->opcode == OP_BR) {
+ MonoBasicBlock *target = inst->inst_target_bb;
+
+ if (!(target->flags & BB_REACHABLE)) {
+ target->flags |= BB_REACHABLE;
+ *bblist = g_list_prepend (*bblist, target);
+ }
} else if ((inst->opcode >= CEE_BEQ && inst->opcode <= CEE_BLT_UN) &&
((inst->inst_i0->opcode == OP_COMPARE) || (inst->inst_i0->opcode == OP_LCOMPARE))) {
int a, b, r1, r2;