hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/KillingBeginNode.java
changeset 46344 694c102fd8ed
parent 43972 1ade39b8381b
child 46459 7d4e637d3f21
--- a/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/KillingBeginNode.java	Mon Dec 12 16:16:27 2016 +0300
+++ b/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/KillingBeginNode.java	Wed Mar 22 13:42:45 2017 -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;