summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorDennis Sweeney <36520290+sweeneyde@users.noreply.github.com>2022-05-23 12:58:41 (GMT)
committerGitHub <noreply@github.com>2022-05-23 12:58:41 (GMT)
commita458be3263b4cb92f3fde726461e8ef44b2a4a9d (patch)
tree059f5f89fb76fe6f6b10cf11eae05379936dc6e2 /Python/compile.c
parentfc00667247c47285751d77de7645c11a5393d870 (diff)
downloadcpython-a458be3263b4cb92f3fde726461e8ef44b2a4a9d.zip
cpython-a458be3263b4cb92f3fde726461e8ef44b2a4a9d.tar.gz
cpython-a458be3263b4cb92f3fde726461e8ef44b2a4a9d.tar.bz2
gh-93061: Mark as artificial: backwards jump after async for (GH-93062)
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/compile.c b/Python/compile.c
index c862c10..a4738c1 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -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);