# HG changeset patch # User Thomas Wuerthinger # Date 1379288516 -7200 # Node ID 58b2ae9070465d951ceb8d785281b8958882667d # Parent 317036da1f295b4a778966c1c5a7f04861d4c908 Fix LoadJavaMirrorWithKlassPhase to use new node addition constraints. diff -r 317036da1f29 -r 58b2ae907046 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/phases/LoadJavaMirrorWithKlassPhase.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/phases/LoadJavaMirrorWithKlassPhase.java Mon Sep 16 01:39:52 2013 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/phases/LoadJavaMirrorWithKlassPhase.java Mon Sep 16 01:41:56 2013 +0200 @@ -61,7 +61,7 @@ Stamp stamp = StampFactory.exactNonNull(runtime.lookupJavaType(Class.class)); LocationNode location = graph.unique(ConstantLocationNode.create(FINAL_LOCATION, stamp.kind(), runtime.config.classMirrorOffset, graph)); - FloatingReadNode freadNode = graph.add(new FloatingReadNode(klassNode, location, null, stamp)); + FloatingReadNode freadNode = graph.unique(new FloatingReadNode(klassNode, location, null, stamp)); graph.replaceFloating(node, freadNode); }