summaryrefslogtreecommitdiffstats
path: root/Python/specialize.c
diff options
context:
space:
mode:
authorBrandt Bucher <brandtbucher@microsoft.com>2022-07-22 18:04:20 (GMT)
committerGitHub <noreply@github.com>2022-07-22 18:04:20 (GMT)
commite402b26b7fb953a2f0c17a0044bb6d6cbd726e54 (patch)
treeb0b4dc8fd76d64028e0018066de86900949364e4 /Python/specialize.c
parent79d2f549adcbbefd4f2c0a0c9dd572bbbf252c62 (diff)
downloadcpython-e402b26b7fb953a2f0c17a0044bb6d6cbd726e54.zip
cpython-e402b26b7fb953a2f0c17a0044bb6d6cbd726e54.tar.gz
cpython-e402b26b7fb953a2f0c17a0044bb6d6cbd726e54.tar.bz2
GH-95113: Don't use EXTENDED_ARG_QUICK in unquickened code (GH-95121)
Diffstat (limited to 'Python/specialize.c')
-rw-r--r--Python/specialize.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/specialize.c b/Python/specialize.c
index 6f1f3cb..53b2ae8 100644
--- a/Python/specialize.c
+++ b/Python/specialize.c
@@ -295,6 +295,9 @@ _PyCode_Quicken(PyCodeObject *code)
else {
assert(!_PyOpcode_Caches[opcode]);
switch (opcode) {
+ case EXTENDED_ARG:
+ _Py_SET_OPCODE(instructions[i], EXTENDED_ARG_QUICK);
+ break;
case JUMP_BACKWARD:
_Py_SET_OPCODE(instructions[i], JUMP_BACKWARD_QUICK);
break;