diff options
author | Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com> | 2022-05-23 23:53:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-23 23:53:38 (GMT) |
commit | c1b12495f67be5eca2692532de14e81a93025e6a (patch) | |
tree | 1fed2b99b2c314d688a12856432c2f909a52806e /Python | |
parent | 251104f12d0cebb997f26f8ca3dac48202c7456a (diff) | |
download | cpython-c1b12495f67be5eca2692532de14e81a93025e6a.zip cpython-c1b12495f67be5eca2692532de14e81a93025e6a.tar.gz cpython-c1b12495f67be5eca2692532de14e81a93025e6a.tar.bz2 |
gh-93061: Mark as artificial: backwards jump after async for (GH-93120)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/compile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/compile.c b/Python/compile.c index f012406..7210d42 100644 --- a/Python/compile.c +++ b/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); |