File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/code Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 53
53
import com .oracle .graal .python .nodes .argument .ReadKeywordNode ;
54
54
import com .oracle .graal .python .nodes .argument .ReadVarArgsNode ;
55
55
import com .oracle .graal .python .nodes .argument .ReadVarKeywordsNode ;
56
+ import com .oracle .graal .python .nodes .frame .FrameSlotIDs ;
56
57
import com .oracle .graal .python .nodes .frame .WriteIdentifierNode ;
57
58
import com .oracle .graal .python .nodes .function .FunctionRootNode ;
58
59
import com .oracle .graal .python .nodes .generator .GeneratorFunctionRootNode ;
@@ -282,7 +283,9 @@ private void extractArgStats() {
282
283
if (identifier instanceof String ) {
283
284
String varName = (String ) identifier ;
284
285
285
- if (core .getParser ().isIdentifier (core , varName )) {
286
+ if (FrameSlotIDs .RETURN_SLOT_ID .equals (varName ) || varName .startsWith (FrameSlotIDs .TEMP_LOCAL_PREFIX )) {
287
+ // pass
288
+ } else if (core .getParser ().isIdentifier (core , varName )) {
286
289
if (allArgNames .contains (varName )) {
287
290
varnamesSet .add (varName );
288
291
} else if (!freeVarsSet .contains (varName ) && !cellVarsSet .contains (varName )) {
You can’t perform that action at this time.
0 commit comments