summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2023-02-14 11:54:13 (GMT)
committerGitHub <noreply@github.com>2023-02-14 11:54:13 (GMT)
commit81e3aa835c32363f4547b6566edf1125386f1f6d (patch)
tree4a20320722549dca1c5d581772aa2a6152d8ca5b /Python/compile.c
parent3690688149dca11589af59b7704541336613199a (diff)
downloadcpython-81e3aa835c32363f4547b6566edf1125386f1f6d.zip
cpython-81e3aa835c32363f4547b6566edf1125386f1f6d.tar.gz
cpython-81e3aa835c32363f4547b6566edf1125386f1f6d.tar.bz2
gh-101799: implement PREP_RERAISE_STAR as an intrinsic function (#101800)
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/compile.c b/Python/compile.c
index b49eda3..0534b53 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -3431,7 +3431,7 @@ compiler_try_except(struct compiler *c, stmt_ty s)
[orig, res, rest] Ln+1: LIST_APPEND 1 ) add unhandled exc to res (could be None)
- [orig, res] PREP_RERAISE_STAR
+ [orig, res] CALL_INTRINSIC_2 PREP_RERAISE_STAR
[exc] COPY 1
[exc, exc] POP_JUMP_IF_NOT_NONE RER
[exc] POP_TOP
@@ -3580,7 +3580,7 @@ compiler_try_star_except(struct compiler *c, stmt_ty s)
NEW_JUMP_TARGET_LABEL(c, reraise);
USE_LABEL(c, reraise_star);
- ADDOP(c, NO_LOCATION, PREP_RERAISE_STAR);
+ ADDOP_I(c, NO_LOCATION, CALL_INTRINSIC_2, INTRINSIC_PREP_RERAISE_STAR);
ADDOP_I(c, NO_LOCATION, COPY, 1);
ADDOP_JUMP(c, NO_LOCATION, POP_JUMP_IF_NOT_NONE, reraise);