Skip to content

Commit 275732b

Browse files
committed
Remove unnecesssary deopt
1 parent cdb4a05 commit 275732b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/bytecodes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1674,7 +1674,7 @@ dummy_func(
16741674
op(_UNPACK_SEQUENCE_UNIQUE_TUPLE, (seq -- values[oparg])) {
16751675
PyObject *seq_o = PyStackRef_AsPyObjectBorrow(seq);
16761676
assert(PyTuple_CheckExact(seq_o));
1677-
DEOPT_IF(PyTuple_GET_SIZE(seq_o) != oparg);
1677+
assert(PyTuple_GET_SIZE(seq_o) == oparg);
16781678
DEOPT_IF(!_PyObject_IsUniquelyReferenced(seq_o));
16791679
STAT_INC(UNPACK_SEQUENCE, hit);
16801680
PyObject **items = _PyTuple_ITEMS(seq_o);

0 commit comments

Comments
 (0)