We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fb39788 + 8ae0e97 commit 4f9b088Copy full SHA for 4f9b088
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/function/builtins/WrapTpNew.java
@@ -133,7 +133,7 @@ public Object execute(VirtualFrame frame) {
133
}
134
NodeFactory<? extends PythonBuiltinBaseNode> factory = ((PBuiltinFunction) builtinProfile.profile(newMethod)).getBuiltinNodeFactory();
135
if (factory != null) {
136
- if (!factory.getNodeClass().isAssignableFrom(getNode().getClass())) {
+ if (!factory.getNodeClass().isInstance(getNode())) {
137
if ((state & IS_UNSAFE_STATE) == 0) {
138
CompilerDirectives.transferToInterpreterAndInvalidate();
139
reportPolymorphicSpecialize();
0 commit comments