Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 414e26a

Browse files
committedJun 13, 2022
remove two unused fields from struct assembler
1 parent 5330060 commit 414e26a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed
 

‎Python/compile.c

+2-4
Original file line numberDiff line numberDiff line change
@@ -6991,8 +6991,6 @@ struct assembler {
69916991
basicblock *a_entry;
69926992
int a_offset; /* offset into bytecode */
69936993
int a_except_table_off; /* offset into exception table */
6994-
int a_prevlineno; /* lineno of last emitted line in line table */
6995-
int a_prev_end_lineno; /* end_lineno of last emitted line in line table */
69966994
int a_lineno; /* lineno of last emitted instruction */
69976995
int a_end_lineno; /* end_lineno of last emitted instruction */
69986996
int a_lineno_start; /* bytecode start offset of current lineno */
@@ -7104,8 +7102,8 @@ static int
71047102
assemble_init(struct assembler *a, int nblocks, int firstlineno)
71057103
{
71067104
memset(a, 0, sizeof(struct assembler));
7107-
a->a_prevlineno = a->a_lineno = firstlineno;
7108-
a->a_prev_end_lineno = a->a_end_lineno = firstlineno;
7105+
a->a_lineno = firstlineno;
7106+
a->a_end_lineno = firstlineno;
71097107
a->a_linetable = NULL;
71107108
a->a_location_off = 0;
71117109
a->a_except_table = NULL;

0 commit comments

Comments
 (0)
Please sign in to comment.