| Index: src/hydrogen-bce.cc
|
| diff --git a/src/hydrogen-bce.cc b/src/hydrogen-bce.cc
|
| index 1f3f449a0c317b26c8c6cd99a4d86cc60f0266d0..5f45c1fd0dc5383dab9d4714b504407f2c7fa8e2 100644
|
| --- a/src/hydrogen-bce.cc
|
| +++ b/src/hydrogen-bce.cc
|
| @@ -47,10 +47,7 @@ class BoundsCheckKey : public ZoneObject {
|
| } else if (check->index()->IsSub()) {
|
| HSub* index = HSub::cast(check->index());
|
| is_sub = true;
|
| - if (index->left()->IsConstant()) {
|
| - constant = HConstant::cast(index->left());
|
| - index_base = index->right();
|
| - } else if (index->right()->IsConstant()) {
|
| + if (index->right()->IsConstant()) {
|
| constant = HConstant::cast(index->right());
|
| index_base = index->left();
|
| }
|
|
|