# HG changeset patch # User Thomas Wuerthinger # Date 1429532357 -7200 # Node ID 931b0acc8d2ed45f578417cd9b31206159e52446 # Parent 2e0a55d381ea134aa48038ddb16021c30ed2d657 Fixed incorrect definition of AbstractBeginNode#anchored and AbstractBeginNode#proxies utility methods. diff -r 2e0a55d381ea -r 931b0acc8d2e graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/AbstractBeginNode.java --- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/AbstractBeginNode.java Mon Apr 20 14:17:06 2015 +0200 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/AbstractBeginNode.java Mon Apr 20 14:19:17 2015 +0200 @@ -126,11 +126,24 @@ } public NodeIterable anchored() { - return usages().filter(isNotA(ProxyNode.class)); + return usages().filter(n -> { + if (n instanceof ProxyNode) { + ProxyNode proxyNode = (ProxyNode) n; + return proxyNode.proxyPoint() != this; + } + return true; + }); } + @SuppressWarnings({"unchecked", "rawtypes"}) public NodeIterable proxies() { - return usages().filter(ProxyNode.class); + return (NodeIterable) usages().filter(n -> { + if (n instanceof ProxyNode) { + ProxyNode proxyNode = (ProxyNode) n; + return proxyNode.proxyPoint() == this; + } + return false; + }); } public NodeIterable getBlockNodes() {