Commit 6aa0d3cf authored by Vitja Makarov's avatar Vitja Makarov

FlowControl: fix case when arg entry is None, see #692, for instance

parent 103935ce
...@@ -709,6 +709,7 @@ class CreateControlFlowGraph(CythonTransform): ...@@ -709,6 +709,7 @@ class CreateControlFlowGraph(CythonTransform):
def visit_CArgDeclNode(self, node): def visit_CArgDeclNode(self, node):
entry = self.env.lookup(node.name) entry = self.env.lookup(node.name)
if entry:
self.flow.mark_argument(node, TypedExprNode(entry.type), entry) self.flow.mark_argument(node, TypedExprNode(entry.type), entry)
return node return node
......
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