diff options
author | Brandt Bucher <brandtbucher@microsoft.com> | 2023-07-20 16:35:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-20 16:35:39 (GMT) |
commit | 214a25dd81dfe5ee0ab843cf665da2a7473a08db (patch) | |
tree | b8b3defdba096cbf70180c968a59531c8d1a7465 /Python/optimizer.c | |
parent | 009e8f084c4cbb1f43d40b24b7f71fb189bbe36b (diff) | |
download | cpython-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.c | 1 |
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(); |