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:
parent
54d42e8fe8
commit
af02635558
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user