Index: src/compiler/scheduler.cc |
diff --git a/src/compiler/scheduler.cc b/src/compiler/scheduler.cc |
index 8c169368e54d5e8883e6184d542d7b02e5a34c18..35d7ab9d8807fb58268ae0cd7e40aefe0549f2fe 100644 |
--- a/src/compiler/scheduler.cc |
+++ b/src/compiler/scheduler.cc |
@@ -1063,9 +1063,9 @@ void Scheduler::GenerateImmediateDominatorTree() { |
// Build the block dominator tree. |
schedule_->start()->set_dominator_depth(0); |
typedef SpecialRPONumberer::BlockList BlockList; |
- for (BlockList* l = special_rpo_->order_; l != NULL; l = l->next) { |
+ DCHECK_EQ(schedule_->start(), special_rpo_->order_->block); |
+ for (BlockList* l = special_rpo_->order_->next; l != NULL; l = l->next) { |
BasicBlock* current = l->block; |
- if (current == schedule_->start()) continue; |
BasicBlock::Predecessors::iterator pred = current->predecessors_begin(); |
BasicBlock::Predecessors::iterator end = current->predecessors_end(); |
DCHECK(pred != end); // All blocks except start have predecessors. |