summaryrefslogtreecommitdiffstats
path: root/Python/optimizer_analysis.c
diff options
context:
space:
mode:
authorKen Jin <kenjin@python.org>2024-02-23 07:42:03 (GMT)
committerGitHub <noreply@github.com>2024-02-23 07:42:03 (GMT)
commita33ffe4785f90f68227ddf2ec3e06d5ceaf76cec (patch)
tree941f62dd34527cf4208ad9c319cc8f2fd7582d9e /Python/optimizer_analysis.c
parenta494a3dd8e0e74861972698c37b14a4087a4688c (diff)
downloadcpython-a33ffe4785f90f68227ddf2ec3e06d5ceaf76cec.zip
cpython-a33ffe4785f90f68227ddf2ec3e06d5ceaf76cec.tar.gz
cpython-a33ffe4785f90f68227ddf2ec3e06d5ceaf76cec.tar.bz2
gh-114058: More robust method handling in redundancy eliminator (GH-115779)
Diffstat (limited to 'Python/optimizer_analysis.c')
-rw-r--r--Python/optimizer_analysis.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/optimizer_analysis.c b/Python/optimizer_analysis.c
index 68ef825..9503dcc 100644
--- a/Python/optimizer_analysis.c
+++ b/Python/optimizer_analysis.c
@@ -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;
}