--- old/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/KillingBeginNode.java 2017-03-20 17:40:28.000000000 -0700 +++ new/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/KillingBeginNode.java 2017-03-20 17:40:28.000000000 -0700 @@ -42,15 +42,19 @@ this.locationIdentity = locationIdentity; } - public static KillingBeginNode begin(FixedNode with, LocationIdentity locationIdentity) { + public static AbstractBeginNode begin(FixedNode with, LocationIdentity locationIdentity) { if (with instanceof KillingBeginNode) { return (KillingBeginNode) with; } - KillingBeginNode begin = with.graph().add(new KillingBeginNode(locationIdentity)); + AbstractBeginNode begin = with.graph().add(KillingBeginNode.create(locationIdentity)); begin.setNext(with); return begin; } + public static AbstractBeginNode create(LocationIdentity locationIdentity) { + return new KillingBeginNode(locationIdentity); + } + @Override public LocationIdentity getLocationIdentity() { return locationIdentity;