Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.truffle.api.codegen.test/src/com/oracle/truffle/api/codegen/test/BinaryNodeTest.java @ 9209:119a20bb3b1d
Fixed minor bug in BinaryNodeTest.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 08 Apr 2013 16:50:17 +0200 |
parents | 6ef9fc7375c7 |
children | 5f7f0d3e3638 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api.codegen.test/src/com/oracle/truffle/api/codegen/test/BinaryNodeTest.java Mon Apr 08 12:16:30 2013 +0200 +++ b/graal/com.oracle.truffle.api.codegen.test/src/com/oracle/truffle/api/codegen/test/BinaryNodeTest.java Mon Apr 08 16:50:17 2013 +0200 @@ -55,8 +55,8 @@ @Child protected ValueNode rightNode; public BinaryNode(ValueNode left, ValueNode right) { - this.leftNode = left; - this.rightNode = right; + this.leftNode = adoptChild(left); + this.rightNode = adoptChild(right); } public BinaryNode(BinaryNode prev) {