gh-93061: Mark as artificial: backwards jump after async for (GH-93062)

This commit is contained in:
Dennis Sweeney 2022-05-23 08:58:41 -04:00 committed by GitHub
parent fc00667247
commit a458be3263
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 55 additions and 0 deletions

View file

@ -3148,6 +3148,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 */
UNSET_LOC(c);
ADDOP_JUMP(c, JUMP, start);
compiler_pop_fblock(c, FOR_LOOP, start);