diff options
author | Raymond Hettinger <python@rcn.com> | 2011-03-15 22:03:36 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2011-03-15 22:03:36 (GMT) |
commit | 0661e91feda0757c10c8b3bf3fa047b7d3e50444 (patch) | |
tree | bc4916b540668604e0723a1ef369ed11dad96737 /Python/peephole.c | |
parent | 31f218bc6b22e2b360087323e79acef7c1c32537 (diff) | |
download | cpython-0661e91feda0757c10c8b3bf3fa047b7d3e50444.zip cpython-0661e91feda0757c10c8b3bf3fa047b7d3e50444.tar.gz cpython-0661e91feda0757c10c8b3bf3fa047b7d3e50444.tar.bz2 |
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 ab96ce9..4bc65dc 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); |