commit | 0661e91feda0757c10c8b3bf3fa047b7d3e50444 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Tue Mar 15 15:03:36 2011 -0700 |
committer | Raymond Hettinger <python@rcn.com> | Tue Mar 15 15:03:36 2011 -0700 |
tree | bc4916b540668604e0723a1ef369ed11dad96737 | |
parent | 31f218bc6b22e2b360087323e79acef7c1c32537 [diff] [blame] |
Issue 11510: Fix BUILD_SET optimizer bug.
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 @@ } 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);