Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zrr1999 committed Sep 2, 2023
1 parent 2cdbd94 commit 5824aa0
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions sot/opcode_translator/executor/opcode_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1862,11 +1862,13 @@ def _break_graph_in_call(

for i, stack_arg in enumerate(self.stack):
# Avoid passing NULL as a parameter to the resume function
if isinstance(stack_arg, NullVariable):
if i < len(self.stack) - pop_n:
self._graph.pycode_gen.gen_load_object(
NullVariable(), f'dummy_var{i}', push_null=False
)
if (
isinstance(stack_arg, NullVariable)
and i < len(self.stack) - pop_n
):
self._graph.pycode_gen.gen_load_object(
NullVariable(), f'dummy_var{i}', push_null=False
)
else:
var_loader.load(stack_arg)

Expand Down

0 comments on commit 5824aa0

Please sign in to comment.