# HG changeset patch # User Thomas Wuerthinger # Date 1423831072 -3600 # Node ID 6975a87eea64ecaa2f51fb782799be99ea351939 # Parent 1c2e8a440bbdcab6d61f682ddd16cd9228e56f9b Correctly append CheckCast node. diff -r 1c2e8a440bbd -r 6975a87eea64 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotGraphBuilderPlugins.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotGraphBuilderPlugins.java Fri Feb 13 13:05:54 2015 +0100 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotGraphBuilderPlugins.java Fri Feb 13 13:37:52 2015 +0100 @@ -68,7 +68,7 @@ if (rcvr.isConstant() && !rcvr.isNullConstant()) { ResolvedJavaType type = builder.getConstantReflection().asJavaType(rcvr.asConstant()); if (type != null && !type.isPrimitive()) { - builder.push(Kind.Object, CheckCastNode.create(type, object, null, false, builder.getAssumptions())); + builder.push(Kind.Object, builder.append(CheckCastNode.create(type, object, null, false, builder.getAssumptions()))); return true; } }