summaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/src/Python/compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tools/python3/src/Python/compile.c')
-rw-r--r--contrib/tools/python3/src/Python/compile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/tools/python3/src/Python/compile.c b/contrib/tools/python3/src/Python/compile.c
index f012406c066..7210d42fc76 100644
--- a/contrib/tools/python3/src/Python/compile.c
+++ b/contrib/tools/python3/src/Python/compile.c
@@ -2925,6 +2925,8 @@ compiler_async_for(struct compiler *c, stmt_ty s)
/* Success block for __anext__ */
VISIT(c, expr, s->v.AsyncFor.target);
VISIT_SEQ(c, stmt, s->v.AsyncFor.body);
+ /* Mark jump as artificial */
+ c->u->u_lineno = -1;
ADDOP_JUMP(c, JUMP_ABSOLUTE, start);
compiler_pop_fblock(c, FOR_LOOP, start);