Commit 0365493a authored by Sigurd Schneider's avatar Sigurd Schneider Committed by Commit Bot

[cleanup] Fix inconsistency in JSCallReducer

Bug: v8:7310
Change-Id: Ia9e830ef9283b6890f505f15550170d1fd1f47b2
Reviewed-on: https://chromium-review.googlesource.com/939623Reviewed-by: 's avatarBenedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Cr-Commit-Position: refs/heads/master@{#51611}
parent 20baf1bf
...@@ -252,7 +252,7 @@ Reduction JSCallReducer::ReduceObjectConstructor(Node* node) { ...@@ -252,7 +252,7 @@ Reduction JSCallReducer::ReduceObjectConstructor(Node* node) {
} }
} else { } else {
ReplaceWithValue(node, value); ReplaceWithValue(node, value);
return Replace(node); return Replace(value);
} }
return NoChange(); return NoChange();
} }
......
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