diff --git a/Misc/NEWS.d/next/Core and Builtins/2022-06-10-16-57-35.gh-issue-93678.1WBnHt.rst b/Misc/NEWS.d/next/Core and Builtins/2022-06-10-16-57-35.gh-issue-93678.1WBnHt.rst index f4378763404b50..24a0d1042d81ae 100644 --- a/Misc/NEWS.d/next/Core and Builtins/2022-06-10-16-57-35.gh-issue-93678.1WBnHt.rst +++ b/Misc/NEWS.d/next/Core and Builtins/2022-06-10-16-57-35.gh-issue-93678.1WBnHt.rst @@ -1,2 +1 @@ -Refactor the compiler's code-gen functions to reduce boilerplate and -repetition. +Refactor the compiler to reduce boilerplate and repetition. diff --git a/Python/compile.c b/Python/compile.c index 207163cfb9a52e..65e84eeaf6174d 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -202,10 +202,9 @@ is_relative_jump(struct instr *i) } static inline int -is_block_push(struct instr *instr) +is_block_push(struct instr *i) { - int opcode = instr->i_opcode; - return IS_BLOCK_PUSH_OPCODE(opcode); + return IS_BLOCK_PUSH_OPCODE(i->i_opcode); } static inline int @@ -385,7 +384,6 @@ struct compiler_unit { struct location u_loc; /* line/column info of the current stmt */ }; - /* This struct captures the global state of a compilation. The u pointer points to the current compilation unit, while units