Commit af026355 authored by Jun Lim's avatar Jun Lim Committed by Commit Bot

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/+/1601793Reviewed-by: 's avatarSigurd Schneider <sigurds@chromium.org>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Cr-Commit-Position: refs/heads/master@{#61398}
parent 54d42e8f
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment