Skip to content

Commit

Permalink
[SOT][3.11] Fix gen_dup_top generated COPY instruction with wrong…
Browse files Browse the repository at this point in the history
… oparg setting (#69774)
  • Loading branch information
gouzil authored Nov 28, 2024
1 parent 717aea1 commit 6c1c486
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ def gen_shift_n(self, s: int, n: int):

def gen_dup_top(self):
if sys.version_info >= (3, 11):
return self.add_instr("COPY", arg=0)
return self.add_instr("COPY", arg=1)
return self.add_instr("DUP_TOP")

def gen_swap(self, n):
Expand Down

0 comments on commit 6c1c486

Please sign in to comment.