diff --git a/src/maglev/maglev-regalloc.cc b/src/maglev/maglev-regalloc.cc index bd0e664d86..1457bb23c2 100644 --- a/src/maglev/maglev-regalloc.cc +++ b/src/maglev/maglev-regalloc.cc @@ -668,8 +668,8 @@ void StraightForwardRegisterAllocator::AddMoveBeforeCurrentNode( ValueNode* node, compiler::InstructionOperand source, compiler::AllocatedOperand target) { Node* gap_move; - DCHECK_EQ(source.IsConstant(), IsConstantNode(node->opcode())); if (source.IsConstant()) { + DCHECK(IsConstantNode(node->opcode())); gap_move = Node::New(compilation_info_->zone(), {}, node, target); } else {