Skip to content

Commit

Permalink
trivial stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
iritkatriel committed Jun 10, 2022
1 parent 9220fc1 commit 9b5dc34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
Refactor the compiler's code-gen functions to reduce boilerplate and
repetition.
Refactor the compiler to reduce boilerplate and repetition.
6 changes: 2 additions & 4 deletions Python/compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9b5dc34

Please sign in to comment.