Skip to content

Commit 14b575f

Browse files
committed
Update code
Signed-off-by: Manjusaka <[email protected]>
1 parent bdba96c commit 14b575f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Python/optimizer_bytecodes.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,9 @@ dummy_func(void) {
940940
res = sym_new_const(ctx, Py_True);
941941
}
942942

943-
943+
op(_BUILD_TUPLE, (values[oparg] -- tup)) {
944+
tup = sym_new_tuple(ctx, oparg, values);
945+
}
944946

945947
op(_BUILD_LIST, (values[oparg] -- list)) {
946948
list = sym_new_type(ctx, &PyList_Type);
@@ -954,10 +956,6 @@ dummy_func(void) {
954956
slice = sym_new_type(ctx, &PySlice_Type);
955957
}
956958

957-
op(_BUILD_TUPLE, (values[oparg] -- tup)) {
958-
tup = sym_new_tuple(ctx, oparg, values);
959-
}
960-
961959
op(_BUILD_STRING, (values[oparg] -- str)) {
962960
str = sym_new_type(ctx, &PyUnicode_Type);
963961
}

0 commit comments

Comments
 (0)