consider an instruction reachable if it has no predecessors (i.e. it's the first instruction

This commit is contained in:
Joel Dice 2009-06-12 09:45:29 -06:00
parent 31976f585a
commit a21f951e29

View File

@ -2591,7 +2591,7 @@ unreachable(Event* event)
for (Link* p = event->predecessors; p; p = p->nextPredecessor) {
if (not p->predecessor->allExits()) return false;
}
return true;
return event->predecessors != 0;
}
class ReturnEvent: public Event {