Commit 13bf137c authored by Vitja Makarov's avatar Vitja Makarov

Initialize node.cf_state to empty set

parent 865073a2
...@@ -219,6 +219,8 @@ class NameAssignment(object): ...@@ -219,6 +219,8 @@ class NameAssignment(object):
is_arg = False is_arg = False
def __init__(self, lhs, rhs, entry): def __init__(self, lhs, rhs, entry):
if lhs.cf_state is None:
lhs.cf_state = set()
self.lhs = lhs self.lhs = lhs
self.rhs = rhs self.rhs = rhs
self.entry = entry self.entry = entry
...@@ -236,6 +238,8 @@ class Uninitialized(object): ...@@ -236,6 +238,8 @@ class Uninitialized(object):
class NameReference(object): class NameReference(object):
def __init__(self, node, entry): def __init__(self, node, entry):
if node.cf_state is None:
node.cf_state = set()
self.node = node self.node = node
self.entry = entry self.entry = entry
self.pos = node.pos self.pos = node.pos
......
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