gh-98879: Remove unreachable error case from COMPARE_OP_STR_JUMP (GH-98882)

Thanks to PEP 623 changes, the comparison cannot fail.
This commit is contained in:
Dennis Sweeney 2022-10-30 19:07:11 -04:00 committed by GitHub
parent 018b2483c4
commit 87b5fd9d9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3420,9 +3420,6 @@ handle_eval_breaker:
DEOPT_IF(!PyUnicode_CheckExact(right), COMPARE_OP);
STAT_INC(COMPARE_OP, hit);
int res = _PyUnicode_Equal(left, right);
if (res < 0) {
goto error;
}
assert(oparg == Py_EQ || oparg == Py_NE);
JUMPBY(INLINE_CACHE_ENTRIES_COMPARE_OP);
NEXTOPARG();