< prev index next >

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/calc/UnaryNode.java

Print this page

        

@@ -43,10 +43,15 @@
     @Override
     public ValueNode getValue() {
         return value;
     }
 
+    public void setValue(ValueNode value) {
+        updateUsages(this.value, value);
+        this.value = value;
+    }
+
     /**
      * Creates a new UnaryNode instance.
      *
      * @param stamp the result type of this instruction
      * @param value the input instruction
< prev index next >