diff options
author | Mark Shannon <mark@hotpy.org> | 2025-02-27 09:36:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-27 09:36:41 (GMT) |
commit | 2a18e80695ac1f05c95ea3b1cfe29defd45e2f71 (patch) | |
tree | 4fec858cc19c76631a9958ba9ca4d049e2c19f50 /Python/codegen.c | |
parent | fda056e64bdfcac3dd3d13eebda0a24994d83cb8 (diff) | |
download | cpython-2a18e80695ac1f05c95ea3b1cfe29defd45e2f71.zip cpython-2a18e80695ac1f05c95ea3b1cfe29defd45e2f71.tar.gz cpython-2a18e80695ac1f05c95ea3b1cfe29defd45e2f71.tar.bz2 |
GH-128534: Instrument branches for `async for` loops. (GH-130569)
Diffstat (limited to 'Python/codegen.c')
-rw-r--r-- | Python/codegen.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/codegen.c b/Python/codegen.c index 7669cc5..ecad8c2 100644 --- a/Python/codegen.c +++ b/Python/codegen.c @@ -2041,6 +2041,7 @@ codegen_async_for(compiler *c, stmt_ty s) ADDOP_LOAD_CONST(c, loc, Py_None); ADD_YIELD_FROM(c, loc, 1); ADDOP(c, loc, POP_BLOCK); /* for SETUP_FINALLY */ + ADDOP(c, loc, NOT_TAKEN); /* Success block for __anext__ */ VISIT(c, expr, s->v.AsyncFor.target); |