| Index: src/crankshaft/hydrogen.cc
|
| diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc
|
| index 249611e143722baf74fb6f8f39d08e98245c98a5..0ddd78815378c2d7535bd6983553ce557ae900c0 100644
|
| --- a/src/crankshaft/hydrogen.cc
|
| +++ b/src/crankshaft/hydrogen.cc
|
| @@ -5044,7 +5044,8 @@ void HOptimizedGraphBuilder::VisitSwitchStatement(SwitchStatement* stmt) {
|
| }
|
|
|
| // Generate a compare and branch.
|
| - CHECK_ALIVE(VisitForValue(clause->label()));
|
| + CHECK_BAILOUT(VisitForValue(clause->label()));
|
| + if (current_block() == NULL) return Bailout(kUnsupportedSwitchStatement);
|
| HValue* label_value = Pop();
|
|
|
| Type* label_type = clause->label()->bounds().lower;
|
|
|