gh-134584: Cleanups for GH-135860 (GH-142604)

This commit is contained in:
Ken Jin 2025-12-13 22:38:10 +08:00 committed by GitHub
parent c98182be8d
commit e02a35c365
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 41 additions and 35 deletions

View file

@ -1097,7 +1097,7 @@ dummy_func(void) {
}
}
op(_CALL_TUPLE_1, (callable, null, arg -- res)) {
op(_CALL_TUPLE_1, (callable, null, arg -- res, a)) {
if (sym_matches_type(arg, &PyTuple_Type)) {
// e.g. tuple((1, 2)) or tuple(foo) where foo is known to be a tuple
// Note: we must strip the reference information because it goes
@ -1107,6 +1107,7 @@ dummy_func(void) {
else {
res = sym_new_type(ctx, &PyTuple_Type);
}
a = arg;
}
op(_GUARD_TOS_LIST, (tos -- tos)) {