|
1 | 1 | /*
|
2 |
| - * Copyright (c) 2017, 2021, Oracle and/or its affiliates. |
| 2 | + * Copyright (c) 2017, 2022, Oracle and/or its affiliates. |
3 | 3 | * Copyright (c) 2013, Regents of the University of California
|
4 | 4 | *
|
5 | 5 | * All rights reserved.
|
|
173 | 173 | import com.oracle.graal.python.builtins.objects.type.PythonClass;
|
174 | 174 | import com.oracle.graal.python.builtins.objects.type.PythonManagedClass;
|
175 | 175 | import com.oracle.graal.python.builtins.objects.type.SpecialMethodSlot;
|
176 |
| -import com.oracle.graal.python.builtins.objects.type.TypeFlags; |
177 | 176 | import com.oracle.graal.python.builtins.objects.type.TypeBuiltins;
|
| 177 | +import com.oracle.graal.python.builtins.objects.type.TypeFlags; |
178 | 178 | import com.oracle.graal.python.builtins.objects.type.TypeNodes;
|
179 | 179 | import com.oracle.graal.python.builtins.objects.type.TypeNodes.GetBestBaseClassNode;
|
180 | 180 | import com.oracle.graal.python.builtins.objects.type.TypeNodes.GetItemsizeNode;
|
@@ -1626,10 +1626,11 @@ private Object callNativeGenericNewNode(Object self, Object[] varargs, PKeyword[
|
1626 | 1626 | }
|
1627 | 1627 | if (toSulongNodes == null) {
|
1628 | 1628 | CompilerDirectives.transferToInterpreterAndInvalidate();
|
1629 |
| - toSulongNodes = new CExtNodes.ToSulongNode[4]; |
1630 |
| - for (int i = 0; i < toSulongNodes.length; i++) { |
1631 |
| - toSulongNodes[i] = insert(CExtNodesFactory.ToSulongNodeGen.create()); |
| 1629 | + CExtNodes.ToSulongNode[] newToSulongNodes = new CExtNodes.ToSulongNode[4]; |
| 1630 | + for (int i = 0; i < newToSulongNodes.length; i++) { |
| 1631 | + newToSulongNodes[i] = CExtNodesFactory.ToSulongNodeGen.create(); |
1632 | 1632 | }
|
| 1633 | + toSulongNodes = insert(newToSulongNodes); |
1633 | 1634 | }
|
1634 | 1635 | if (asPythonObjectNode == null) {
|
1635 | 1636 | CompilerDirectives.transferToInterpreterAndInvalidate();
|
|
0 commit comments