mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue 11510: Fix BUILD_SET optimizer bug.
This commit is contained in:
parent
729c5e203d
commit
29dcaad6eb
3 changed files with 17 additions and 2 deletions
|
@ -475,7 +475,8 @@ PyCode_Optimize(PyObject *code, PyObject* consts, PyObject *names,
|
|||
}
|
||||
if (codestr[i+3] != UNPACK_SEQUENCE ||
|
||||
!ISBASICBLOCK(blocks,i,6) ||
|
||||
j != GETARG(codestr, i+3))
|
||||
j != GETARG(codestr, i+3) ||
|
||||
opcode == BUILD_SET)
|
||||
continue;
|
||||
if (j == 1) {
|
||||
memset(codestr+i, NOP, 6);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue