summaryrefslogtreecommitdiffstats
path: root/Python/flowgraph.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/flowgraph.c')
-rw-r--r--Python/flowgraph.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/flowgraph.c b/Python/flowgraph.c
index afcae31..b53e771 100644
--- a/Python/flowgraph.c
+++ b/Python/flowgraph.c
@@ -1554,9 +1554,9 @@ optimize_basic_block(PyObject *const_cache, basicblock *bb, PyObject *consts)
case KW_NAMES:
break;
case PUSH_NULL:
- if (nextop == LOAD_GLOBAL && (inst[1].i_opcode & 1) == 0) {
+ if (nextop == LOAD_GLOBAL && (bb->b_instr[i+1].i_oparg & 1) == 0) {
INSTR_SET_OP0(inst, NOP);
- inst[1].i_oparg |= 1;
+ bb->b_instr[i+1].i_oparg |= 1;
}
break;
default: