diff options
author | Raymond Hettinger <python@rcn.com> | 2011-03-15 15:03:36 -0700 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2011-03-15 15:03:36 -0700 |
commit | 312c21bb172f56ba90c4c06e2873ceac1170aa18 (patch) | |
tree | 604c90d1f6fcf31df95cbbdfad7dfc76eda3fe2d /Python/peephole.c | |
parent | d36461b5a44b48997fbdbc7012b3b38341854586 (diff) | |
download | cpython-312c21bb172f56ba90c4c06e2873ceac1170aa18.tar.gz |
Issue 11510: Fix BUILD_SET optimizer bug.
Diffstat (limited to 'Python/peephole.c')
-rw-r--r-- | Python/peephole.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/peephole.c b/Python/peephole.c index ab96ce9def..4bc65dcc31 100644 --- a/Python/peephole.c +++ b/Python/peephole.c @@ -535,7 +535,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); |