src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/AbstractBeginNode.java
changeset 48861 47f19ff9903c
parent 47216 71c04702a3d5
child 50858 2d3e99a72541
equal deleted inserted replaced
48860:5bce1b7e7800 48861:47f19ff9903c
   127         public FixedNode next() {
   127         public FixedNode next() {
   128             FixedNode ret = current;
   128             FixedNode ret = current;
   129             if (ret == null) {
   129             if (ret == null) {
   130                 throw new NoSuchElementException();
   130                 throw new NoSuchElementException();
   131             }
   131             }
   132             if (!(current instanceof FixedWithNextNode) || (current instanceof AbstractBeginNode && current != AbstractBeginNode.this)) {
   132             if (current instanceof FixedWithNextNode) {
       
   133                 current = ((FixedWithNextNode) current).next();
       
   134                 if (current instanceof AbstractBeginNode) {
       
   135                     current = null;
       
   136                 }
       
   137             } else {
   133                 current = null;
   138                 current = null;
   134             } else {
       
   135                 current = ((FixedWithNextNode) current).next();
       
   136             }
   139             }
   137             return ret;
   140             return ret;
   138         }
   141         }
   139 
   142 
   140         @Override
   143         @Override