# HG changeset patch # User Miguel Garcia # Date 1400076824 -7200 # Node ID 2bc323b434676ae413bc04662c7d7244e6e7f6da # Parent c93c3dc57f53e8cad0d486bbecf6333d8a085578 [single-pass-iter] sharpening the declared type of PathStart.node diff -r c93c3dc57f53 -r 2bc323b43467 graal/com.oracle.graal.phases/src/com/oracle/graal/phases/graph/SinglePassNodeIterator.java --- a/graal/com.oracle.graal.phases/src/com/oracle/graal/phases/graph/SinglePassNodeIterator.java Wed May 14 16:07:05 2014 +0200 +++ b/graal/com.oracle.graal.phases/src/com/oracle/graal/phases/graph/SinglePassNodeIterator.java Wed May 14 16:13:44 2014 +0200 @@ -110,10 +110,10 @@ *

*/ private static class PathStart { - private final FixedNode node; + private final BeginNode node; private final U stateOnEntry; - private PathStart(FixedNode node, U stateOnEntry) { + private PathStart(BeginNode node, U stateOnEntry) { this.node = node; this.stateOnEntry = stateOnEntry; assert repOK(); @@ -123,7 +123,7 @@ * @return true iff this instance is internally consistent (ie, its "representation is OK") */ private boolean repOK() { - return (node instanceof MergeNode && stateOnEntry == null) || (node instanceof BeginNode && stateOnEntry != null); + return (node instanceof MergeNode && stateOnEntry == null) || (stateOnEntry != null); } } @@ -226,7 +226,7 @@ assert ready : "Not a single-pass iterator after all"; return merge; } else { - BeginNode begin = (BeginNode) elem.node; + BeginNode begin = elem.node; assert begin.predecessor() != null; state = elem.stateOnEntry.clone(); state.afterSplit(begin);