mirror of
https://github.com/corda/corda.git
synced 2025-01-24 05:18:24 +00:00
consider an instruction reachable if it has no predecessors (i.e. it's the first instruction
This commit is contained in:
parent
31976f585a
commit
a21f951e29
@ -2591,7 +2591,7 @@ unreachable(Event* event)
|
|||||||
for (Link* p = event->predecessors; p; p = p->nextPredecessor) {
|
for (Link* p = event->predecessors; p; p = p->nextPredecessor) {
|
||||||
if (not p->predecessor->allExits()) return false;
|
if (not p->predecessor->allExits()) return false;
|
||||||
}
|
}
|
||||||
return true;
|
return event->predecessors != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
class ReturnEvent: public Event {
|
class ReturnEvent: public Event {
|
||||||
|
Loading…
Reference in New Issue
Block a user