changeset 17128:8ec6deb7d2eb

Fix when not using generated node classes
author Christian Wimmer <christian.wimmer@oracle.com>
date Tue, 16 Sep 2014 18:41:44 -0700
parents 3db919d1c8d5
children f2a87467d41a
files graal/com.oracle.graal.graph/src/com/oracle/graal/graph/NodeClass.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.graph/src/com/oracle/graal/graph/NodeClass.java	Tue Sep 16 18:41:00 2014 -0700
+++ b/graal/com.oracle.graal.graph/src/com/oracle/graal/graph/NodeClass.java	Tue Sep 16 18:41:44 2014 -0700
@@ -254,7 +254,7 @@
                 }
                 if (nodeClass.getClazz().isAssignableFrom(clazz) && IterableNodeType.class.isAssignableFrom(nodeClass.getClazz())) {
                     NodeClass superNodeClass = (NodeClass) nodeClass;
-                    if (!USE_GENERATED_NODES || !containsId(this.iterableId, superNodeClass.iterableIds)) {
+                    if (!containsId(this.iterableId, superNodeClass.iterableIds)) {
                         superNodeClass.iterableIds = Arrays.copyOf(superNodeClass.iterableIds, superNodeClass.iterableIds.length + 1);
                         superNodeClass.iterableIds[superNodeClass.iterableIds.length - 1] = this.iterableId;
                     }
@@ -346,7 +346,7 @@
      *
      * <pre>
      *     if (node.getNodeClass().is(BeginNode.class)) { ... }
-     *
+     * 
      *     // Due to generated Node classes, the test below
      *     // is *not* the same as the test above:
      *     if (node.getClass() == BeginNode.class) { ... }