]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove unused variable. (GH-27677)
authorMark Shannon <mark@hotpy.org>
Mon, 9 Aug 2021 13:44:26 +0000 (14:44 +0100)
committerGitHub <noreply@github.com>
Mon, 9 Aug 2021 13:44:26 +0000 (14:44 +0100)
Python/compile.c

index d65f7a849a5b7df1cbbaf32f23f0a48823369134..e651ca535191af3bf18cd8cf3b64f55968307c5b 100644 (file)
@@ -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) {