diff --git a/src/lithium-codegen.cc b/src/lithium-codegen.cc index 6d76b35c22..a7dc6842c4 100644 --- a/src/lithium-codegen.cc +++ b/src/lithium-codegen.cc @@ -142,6 +142,7 @@ void LCodeGenBase::Comment(const char* format, ...) { int LCodeGenBase::GetNextEmittedBlock() const { for (int i = current_block_ + 1; i < graph()->blocks()->length(); ++i) { + if (!graph()->blocks()->at(i)->IsReachable()) continue; if (!chunk_->GetLabel(i)->HasReplacement()) return i; } return -1;