summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2021-08-09 13:44:26 (GMT)
committerGitHub <noreply@github.com>2021-08-09 13:44:26 (GMT)
commit41bb564cd6ba38c06476de36bc31c3c3568eed63 (patch)
tree037535571eb3de9cb4f8cb07e50c873025b6af1e
parent03e5647ab07c7d2a05094fc3b5ed6eba6fc01349 (diff)
downloadcpython-41bb564cd6ba38c06476de36bc31c3c3568eed63.zip
cpython-41bb564cd6ba38c06476de36bc31c3c3568eed63.tar.gz
cpython-41bb564cd6ba38c06476de36bc31c3c3568eed63.tar.bz2
Remove unused variable. (GH-27677)
-rw-r--r--Python/compile.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Python/compile.c b/Python/compile.c
index d65f7a8..e651ca5 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -8610,11 +8610,9 @@ is_exit_without_lineno(basicblock *b) {
static int
duplicate_exits_without_lineno(struct compiler *c)
{
- basicblock *entry = NULL;
/* Copy all exit blocks without line number that are targets of a jump.
*/
for (basicblock *b = c->u->u_blocks; b != NULL; b = b->b_list) {
- entry = b;
if (b->b_iused > 0 && is_jump(&b->b_instr[b->b_iused-1])) {
switch (b->b_instr[b->b_iused-1].i_opcode) {
/* Note: Only actual jumps, not exception handlers */
@@ -8638,7 +8636,6 @@ duplicate_exits_without_lineno(struct compiler *c)
}
}
}
- assert(entry != NULL);
/* Eliminate empty blocks */
for (basicblock *b = c->u->u_blocks; b != NULL; b = b->b_list) {
while (b->b_next && b->b_next->b_iused == 0) {