Commit 9e098f06 authored by Georg Neis's avatar Georg Neis Committed by Commit Bot

[turbofan] Fix misplaced DCHECK

Bug: chromium:1062532
Change-Id: Iaac3103987a561ce519321276c623b5eb37ec830
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2108022
Commit-Queue: Georg Neis <neis@chromium.org>
Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
Auto-Submit: Georg Neis <neis@chromium.org>
Reviewed-by: 's avatarTobias Tebbi <tebbi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#66764}
parent 1a183417
......@@ -46,8 +46,8 @@ bool IsAlreadyBeingFolded(Node* node) {
bool found = false;
for (Edge edge : node->use_edges()) {
if (!NodeProperties::IsValueEdge(edge)) continue;
DCHECK(!found);
if (edge.from()->opcode() == IrOpcode::kFoldConstant) {
DCHECK(!found);
found = true;
#ifndef ENABLE_SLOW_DCHECKS
break;
......
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