7131028: Switch statement takes wrong path

Pass correct type to branch in LIRGenerator::do_SwitchRanges()

Reviewed-by: kvn, never
This commit is contained in:
Igor Veresov 2012-01-20 15:02:12 -08:00
parent 5b3f2efc2e
commit 55c9a74046
2 changed files with 4 additions and 3 deletions

View file

@ -2350,7 +2350,7 @@ void LIRGenerator::do_SwitchRanges(SwitchRangeArray* x, LIR_Opr value, BlockBegi
} else {
LabelObj* L = new LabelObj();
__ cmp(lir_cond_less, value, low_key);
__ branch(lir_cond_less, L->label());
__ branch(lir_cond_less, T_INT, L->label());
__ cmp(lir_cond_lessEqual, value, high_key);
__ branch(lir_cond_lessEqual, T_INT, dest);
__ branch_destination(L->label());