mirror of
https://github.com/python/cpython.git
synced 2025-10-19 16:03:42 +00:00
gh-138679: Opcodes which consume no inputs should indicate they produced the val… (#138678)
Opcodes which consume no inputs should indicate they produced the value, not an arbitrary local
This commit is contained in:
parent
6831634eb7
commit
1561385863
2 changed files with 8 additions and 1 deletions
|
@ -2891,7 +2891,7 @@ optimize_load_fast(cfg_builder *g)
|
|||
int num_pushed = _PyOpcode_num_pushed(opcode, oparg);
|
||||
int net_pushed = num_pushed - num_popped;
|
||||
assert(net_pushed >= 0);
|
||||
for (int i = 0; i < net_pushed; i++) {
|
||||
for (int j = 0; j < net_pushed; j++) {
|
||||
PUSH_REF(i, NOT_LOCAL);
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue