mirror of
https://github.com/python/cpython.git
synced 2025-08-24 18:55:00 +00:00
gh-93061: Mark as artificial: backwards jump after async for (GH-93120)
This commit is contained in:
parent
251104f12d
commit
c1b12495f6
3 changed files with 55 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue