Skip to content

Commit 23ee323

Browse files
committed
use the cached callable when reading the signature, so we get the final code object
1 parent c3d8c22 commit 23ee323

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/argument/CreateArgumentsNode.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,7 @@ Object[] doFunctionCached(PFunction callable, Object[] userArguments, PKeyword[]
165165
@Cached CreateAndCheckArgumentsNode createAndCheckArgumentsNode,
166166
@Cached InlinedBranchProfile firstExecution,
167167
@Cached(value = "callable", weak = true) @SuppressWarnings("unused") PFunction cachedCallable) {
168-
169-
Signature signature = CodeNodes.GetCodeSignatureNode.getInSingleContextMode(inliningTarget, callable, firstExecution);
168+
Signature signature = CodeNodes.GetCodeSignatureNode.getInSingleContextMode(inliningTarget, cachedCallable, firstExecution);
170169
Object[] defaults = cachedCallable.getDefaults();
171170
PKeyword[] kwdefaults = cachedCallable.getKwDefaults();
172171
return createAndCheckArgumentsNode.execute(inliningTarget, callable, userArguments, keywords, signature, null, null, defaults, kwdefaults, false);

0 commit comments

Comments
 (0)