File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/argument Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -894,7 +894,12 @@ protected static RootCallTarget getCallTarget(Object callable) {
894
894
if (callable instanceof PBuiltinMethod ) {
895
895
return ((PBuiltinMethod ) callable ).getFunction ().getCallTarget ();
896
896
} else if (callable instanceof PMethod ) {
897
- return getCallTarget (((PMethod ) callable ).getFunction ());
897
+ Object function = ((PMethod ) callable ).getFunction ();
898
+ if (function instanceof PBuiltinFunction ) {
899
+ return ((PBuiltinFunction ) function ).getCallTarget ();
900
+ } else if (function instanceof PFunction ) {
901
+ return ((PFunction ) function ).getCallTarget ();
902
+ }
898
903
} else if (callable instanceof PBuiltinFunction ) {
899
904
return ((PBuiltinFunction ) callable ).getCallTarget ();
900
905
} else if (callable instanceof PFunction ) {
You can’t perform that action at this time.
0 commit comments