Skip to content

Commit 00b00cb

Browse files
committed
Keep the same names for stack variables
1 parent dddd56f commit 00b00cb

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

Python/optimizer_bytecodes.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -370,20 +370,20 @@ dummy_func(void) {
370370
res = sym_new_type(ctx, &PyUnicode_Type);
371371
}
372372

373-
op(_BINARY_OP_SUBSCR_TUPLE_INT, (left, right -- res)) {
374-
assert(sym_matches_type(left, &PyTuple_Type));
375-
if (sym_is_const(ctx, right)) {
376-
assert(PyLong_CheckExact(sym_get_const(ctx, right)));
377-
long index = PyLong_AsLong(sym_get_const(ctx, right));
373+
op(_BINARY_OP_SUBSCR_TUPLE_INT, (tuple_st, sub_st -- res)) {
374+
assert(sym_matches_type(tuple_st, &PyTuple_Type));
375+
if (sym_is_const(ctx, sub_st)) {
376+
assert(PyLong_CheckExact(sym_get_const(ctx, sub_st)));
377+
long index = PyLong_AsLong(sym_get_const(ctx, sub_st));
378378
assert(index >= 0);
379-
int tuple_length = sym_tuple_length(left);
379+
int tuple_length = sym_tuple_length(tuple_st);
380380
if (tuple_length == -1) {
381381
// Unknown length
382382
res = sym_new_not_null(ctx);
383383
}
384384
else {
385385
assert(index < tuple_length);
386-
res = sym_tuple_getitem(ctx, left, index);
386+
res = sym_tuple_getitem(ctx, tuple_st, index);
387387
}
388388
}
389389
else {

Python/optimizer_cases.c.h

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)