Index: src/compiler/operator-properties-inl.h |
diff --git a/src/compiler/operator-properties-inl.h b/src/compiler/operator-properties-inl.h |
index 2ddaeca145c8163f3232cdbcd8c4408807b2ed55..70810c65497f6098686d0ba46a24a59a179a91a8 100644 |
--- a/src/compiler/operator-properties-inl.h |
+++ b/src/compiler/operator-properties-inl.h |
@@ -123,6 +123,8 @@ inline int OperatorProperties::GetControlInputCount(const Operator* op) { |
#define OPCODE_CASE(x) case IrOpcode::k##x: |
CONTROL_OP_LIST(OPCODE_CASE) |
#undef OPCODE_CASE |
+ // Branch operator is special |
+ if (op->opcode() == IrOpcode::kBranch) return 1; |
// Control operators are Operator1<int>. |
return OpParameter<int>(op); |
default: |