Commit 5ffa00d4 authored by Stefan Behnel's avatar Stefan Behnel

Mark try-finally statements with terminating finally clauses as terminators themselves.

parent 4cdd7b97
......@@ -2509,6 +2509,12 @@ class RemoveUnreachableCode(CythonTransform):
node.else_clause = None
return node
def visit_TryFinallyStatNode(self, node):
self.visitchildren(node)
if node.finally_clause.is_terminator:
node.is_terminator = True
return node
class YieldNodeCollector(TreeVisitor):
......
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