gh-125038: Fix crash after genexpr.gi_frame.f_locals manipulations (#125178)

This commit is contained in:
Mikhail Efimov 2024-10-22 19:00:25 +03:00 committed by GitHub
parent 91ddde4af0
commit 079875e395
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 77 additions and 0 deletions

View file

@ -4164,6 +4164,7 @@ codegen_sync_comprehension_generator(compiler *c, location loc,
if (IS_JUMP_TARGET_LABEL(start)) {
depth++;
ADDOP(c, LOC(gen->iter), GET_ITER);
USE_LABEL(c, start);
ADDOP_JUMP(c, LOC(gen->iter), FOR_ITER, anchor);
}