Index: test/cctest/interpreter/test-bytecode-generator.cc |
diff --git a/test/cctest/interpreter/test-bytecode-generator.cc b/test/cctest/interpreter/test-bytecode-generator.cc |
index 388ef0ef1292d3a0d8306b6ea867259c374c5442..5033390ef75532aed0d83259a1011288033da334 100644 |
--- a/test/cctest/interpreter/test-bytecode-generator.cc |
+++ b/test/cctest/interpreter/test-bytecode-generator.cc |
@@ -157,6 +157,7 @@ static void CheckBytecodeArrayEqual(struct ExpectedSnippet<T> expected, |
switch (Bytecodes::SizeOfOperand(operand_type)) { |
case OperandSize::kNone: |
UNREACHABLE(); |
+ return; |
case OperandSize::kByte: |
expected_operand = |
static_cast<uint32_t>(expected.bytecode[operand_index]); |
@@ -165,6 +166,9 @@ static void CheckBytecodeArrayEqual(struct ExpectedSnippet<T> expected, |
expected_operand = Bytecodes::ShortOperandFromBytes( |
&expected.bytecode[operand_index]); |
break; |
+ default: |
+ UNREACHABLE(); |
+ return; |
} |
if (raw_operand != expected_operand) { |
std::ostringstream stream; |