Index: src/compiler/effect-control-linearizer.cc |
diff --git a/src/compiler/effect-control-linearizer.cc b/src/compiler/effect-control-linearizer.cc |
index 351382ebf4320c2896dbf0665612787ab18b9242..e83257f31b0e877f9c7d9f2342177f470f3da598 100644 |
--- a/src/compiler/effect-control-linearizer.cc |
+++ b/src/compiler/effect-control-linearizer.cc |
@@ -96,8 +96,10 @@ void UpdateBlockControl(BasicBlock* block, |
// Update all inputs to the given control node with the correct control. |
DCHECK(control->opcode() == IrOpcode::kMerge || |
- control->op()->ControlInputCount() == block->PredecessorCount()); |
- if (control->op()->ControlInputCount() != block->PredecessorCount()) { |
+ static_cast<size_t>(control->op()->ControlInputCount()) == |
+ block->PredecessorCount()); |
+ if (static_cast<size_t>(control->op()->ControlInputCount()) != |
+ block->PredecessorCount()) { |
return; // We already re-wired the control inputs of this node. |
} |
for (int i = 0; i < control->op()->ControlInputCount(); i++) { |