Index: src/builtins/builtins-generator.cc |
diff --git a/src/builtins/builtins-generator.cc b/src/builtins/builtins-generator.cc |
index 4436b8974ca53a6c7f29a6575015ec8837e7282e..722f7b7214dd45ee3cd0fdf939e699243ee33b6d 100644 |
--- a/src/builtins/builtins-generator.cc |
+++ b/src/builtins/builtins-generator.cc |
@@ -56,12 +56,11 @@ void GeneratorBuiltinsAssembler::GeneratorPrototypeResume( |
Bind(&if_receiverisincompatible); |
{ |
// The {receiver} is not a valid JSGeneratorObject. |
- Node* result = |
- CallRuntime(Runtime::kThrowIncompatibleMethodReceiver, context, |
- HeapConstant(factory()->NewStringFromAsciiChecked( |
- method_name, TENURED)), |
- receiver); |
- Return(result); // Never reached. |
+ CallRuntime(Runtime::kThrowIncompatibleMethodReceiver, context, |
+ HeapConstant( |
+ factory()->NewStringFromAsciiChecked(method_name, TENURED)), |
+ receiver); |
+ Unreachable(); |
} |
Bind(&if_receiverisclosed); |
@@ -89,8 +88,8 @@ void GeneratorBuiltinsAssembler::GeneratorPrototypeResume( |
Bind(&if_receiverisrunning); |
{ |
- Node* result = CallRuntime(Runtime::kThrowGeneratorRunning, context); |
- Return(result); // Never reached. |
+ CallRuntime(Runtime::kThrowGeneratorRunning, context); |
+ Unreachable(); |
} |
} |