gh-123048: Fix missing source location in pattern matching code (#123167)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user