gh-114058: More robust method handling in redundancy eliminator (GH-115779)

This commit is contained in:
Ken Jin 2024-02-23 15:42:03 +08:00 committed by GitHub
parent a494a3dd8e
commit a33ffe4785
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 41 additions and 16 deletions

View file

@ -315,6 +315,7 @@ sym_new_known_notnull(_Py_UOpsAbstractInterpContext *ctx)
if (res == NULL) {
return NULL;
}
sym_set_flag(res, KNOWN);
sym_set_flag(res, NOT_NULL);
return res;
}