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