summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2024-08-20 10:39:41 (GMT)
committerGitHub <noreply@github.com>2024-08-20 10:39:41 (GMT)
commitbffed80230f2617de2ee02bd4bdded1024234dab (patch)
tree8a0b46e06425ae76817b50571b5bf29c5349909d /Python/compile.c
parent77133f570dcad599e5b1199c39e999bfac959ae2 (diff)
downloadcpython-bffed80230f2617de2ee02bd4bdded1024234dab.zip
cpython-bffed80230f2617de2ee02bd4bdded1024234dab.tar.gz
cpython-bffed80230f2617de2ee02bd4bdded1024234dab.tar.bz2
gh-123048: Fix missing source location in pattern matching code (#123167)
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 0a338b1..c369202 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -7301,7 +7301,7 @@ codegen_match_inner(struct compiler *c, stmt_ty s, pattern_context *pc)
ADDOP(c, LOC(m->pattern), POP_TOP);
}
VISIT_SEQ(c, stmt, m->body);
- ADDOP_JUMP(c, NO_LOCATION, JUMP_NO_INTERRUPT, end);
+ ADDOP_JUMP(c, NO_LOCATION, JUMP, end);
// If the pattern fails to match, we want the line number of the
// cleanup to be associated with the failed pattern, not the last line
// of the body