summaryrefslogtreecommitdiffstats
path: root/Python/optimizer.c
diff options
context:
space:
mode:
authorBrandt Bucher <brandtbucher@microsoft.com>2023-07-20 16:35:39 (GMT)
committerGitHub <noreply@github.com>2023-07-20 16:35:39 (GMT)
commit214a25dd81dfe5ee0ab843cf665da2a7473a08db (patch)
treeb8b3defdba096cbf70180c968a59531c8d1a7465 /Python/optimizer.c
parent009e8f084c4cbb1f43d40b24b7f71fb189bbe36b (diff)
downloadcpython-214a25dd81dfe5ee0ab843cf665da2a7473a08db.zip
cpython-214a25dd81dfe5ee0ab843cf665da2a7473a08db.tar.gz
cpython-214a25dd81dfe5ee0ab843cf665da2a7473a08db.tar.bz2
GH-104584: Miscellaneous fixes for -Xuops (GH-106908)
Diffstat (limited to 'Python/optimizer.c')
-rw-r--r--Python/optimizer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/optimizer.c b/Python/optimizer.c
index 3d385a1..09120c3 100644
--- a/Python/optimizer.c
+++ b/Python/optimizer.c
@@ -155,6 +155,7 @@ PyUnstable_SetOptimizer(_PyOptimizerObject *optimizer)
_PyInterpreterFrame *
_PyOptimizer_BackEdge(_PyInterpreterFrame *frame, _Py_CODEUNIT *src, _Py_CODEUNIT *dest, PyObject **stack_pointer)
{
+ assert(src->op.code == JUMP_BACKWARD);
PyCodeObject *code = (PyCodeObject *)frame->f_executable;
assert(PyCode_Check(code));
PyInterpreterState *interp = _PyInterpreterState_GET();