Commit 7fee4e82 authored by Vitja Makarov's avatar Vitja Makarov

Track all the scope entries, not referenced or assigned ones.

parent bcfedb86
...@@ -576,6 +576,11 @@ class CreateControlFlowGraph(CythonTransform): ...@@ -576,6 +576,11 @@ class CreateControlFlowGraph(CythonTransform):
self.stack.append(self.flow) self.stack.append(self.flow)
self.flow = ControlFlow() self.flow = ControlFlow()
# Collect all entries
for entry in node.local_scope.entries.values():
if self.flow.is_tracked(entry):
self.flow.entries.add(entry)
self.mark_position(node) self.mark_position(node)
# Function body block # Function body block
self.flow.nextblock() self.flow.nextblock()
......
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