Commit 7075537e authored by Xavier Thompson's avatar Xavier Thompson

Fix call with wrong number of arguments causing later crash in cypclass lock analysis

parent 4bcf9134
...@@ -705,6 +705,8 @@ class CypclassLockTransform(Visitor.EnvTransform): ...@@ -705,6 +705,8 @@ class CypclassLockTransform(Visitor.EnvTransform):
return node return node
def visit_SimpleCallNode(self, node): def visit_SimpleCallNode(self, node):
if node.type.is_error:
return node
func_type = node.function_type() func_type = node.function_type()
if func_type.is_cfunction: if func_type.is_cfunction:
formal_nargs = len(func_type.args) formal_nargs = len(func_type.args)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment