Skip to content

Commit 1e25f00

Browse files
committed
address review: assign res
1 parent e178f70 commit 1e25f00

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Python/optimizer_bytecodes.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2600,6 +2600,7 @@ dummy_func(void) {
26002600
if (type != NULL) {
26012601
int match = type->tp_flags & Py_TPFLAGS_MAPPING;
26022602
REPLACE_OP(this_instr, _LOAD_COMMON_CONSTANT, match? CONSTANT_TRUE : CONSTANT_FALSE, 0);
2603+
res = sym_new_const(ctx, match? Py_True : Py_False);
26032604
}
26042605
else {
26052606
res = sym_new_type(ctx, &PyBool_Type);
@@ -2611,6 +2612,7 @@ dummy_func(void) {
26112612
if (type != NULL) {
26122613
int match = type->tp_flags & Py_TPFLAGS_SEQUENCE;
26132614
REPLACE_OP(this_instr, _LOAD_COMMON_CONSTANT, match? CONSTANT_TRUE : CONSTANT_FALSE, 0);
2615+
res = sym_new_const(ctx, match? Py_True : Py_False);
26142616
}
26152617
else {
26162618
res = sym_new_type(ctx, &PyBool_Type);

Python/optimizer_cases.c.h

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

0 commit comments

Comments
 (0)