mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
7131028: Switch statement takes wrong path
Pass correct type to branch in LIRGenerator::do_SwitchRanges() Reviewed-by: kvn, never
This commit is contained in:
parent
5b3f2efc2e
commit
55c9a74046
2 changed files with 4 additions and 3 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue