diff options
author | Raymond Hettinger <python@rcn.com> | 2011-03-15 21:50:16 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2011-03-15 21:50:16 (GMT) |
commit | 29dcaad6eb47d27fc2d450ae6d81cdf1d740be38 (patch) | |
tree | 2ec6c0e148255b045c302b554ac96fe57d1587e1 /Python | |
parent | 729c5e203da8adc06acddaa3e7ea472d9c255774 (diff) | |
download | cpython-29dcaad6eb47d27fc2d450ae6d81cdf1d740be38.zip cpython-29dcaad6eb47d27fc2d450ae6d81cdf1d740be38.tar.gz cpython-29dcaad6eb47d27fc2d450ae6d81cdf1d740be38.tar.bz2 |
Issue 11510: Fix BUILD_SET optimizer bug.
Diffstat (limited to 'Python')
-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 f972e16..6985043 100644 --- a/Python/peephole.c +++ b/Python/peephole.c @@ -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); |