Mercurial > hg > truffle
changeset 13194:717de4f0b38f
Merged
author | Christian Wirth <christian.wirth@oracle.com> |
---|---|
date | Fri, 29 Nov 2013 12:20:12 +0100 |
parents | ada266d00876 (diff) 824e40a3a4a1 (current diff) |
children | bb992a44734e |
files | |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/ObjectCloneNode.java Fri Nov 29 10:09:18 2013 +0100 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/ObjectCloneNode.java Fri Nov 29 12:20:12 2013 +0100 @@ -80,7 +80,7 @@ type = getConcreteType(getObject().stamp(), tool.assumptions(), tool.getMetaAccess()); if (type != null) { StructuredGraph newGraph = new StructuredGraph(); - LocalNode local = newGraph.add(new LocalNode(0, getObject().stamp())); + LocalNode local = newGraph.unique(new LocalNode(0, getObject().stamp())); NewInstanceNode newInstance = newGraph.add(new NewInstanceNode(type, true)); newGraph.addAfterFixed(newGraph.start(), newInstance); ReturnNode returnNode = newGraph.add(new ReturnNode(newInstance));