Fix max_value_ in SwitchInfo

Set max_value_ with max_value, not min_value.

Change-Id: I6b4938618c3539626af8f91db26dd752836bba63
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1601793
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Cr-Commit-Position: refs/heads/master@{#61398}
This commit is contained in:
Jun Lim 2019-05-08 16:36:17 -05:00 committed by Commit Bot
parent 54d42e8fe8
commit af02635558

View File

@ -33,7 +33,7 @@ class SwitchInfo {
BasicBlock* default_branch)
: cases_(cases),
min_value_(min_value),
max_value_(min_value),
max_value_(max_value),
default_branch_(default_branch) {
if (cases.size() != 0) {
DCHECK_LE(min_value, max_value);