Commit c7c062c7 authored by Vitja Makarov's avatar Vitja Makarov

CF: Remove Uninitialized from cf_state when done

parent dfa31de0
...@@ -530,6 +530,12 @@ def check_definitions(flow, compiler_directives): ...@@ -530,6 +530,12 @@ def check_definitions(flow, compiler_directives):
messages.report() messages.report()
# Remove Uninitialized from cf_state
for node in assmt_nodes:
node.cf_state.discard(Uninitialized)
for node in references:
node.cf_state.discard(Uninitialized)
class AssignmentCollector(TreeVisitor): class AssignmentCollector(TreeVisitor):
def __init__(self): def __init__(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment