Commit 3f526776 authored by Vitja Makarov's avatar Vitja Makarov

CF: move exception target assignment mark to right place, ticket #725

--HG--
extra : transplant_source : %F0%20%BAV%24%00%11%F5V%D9%E3%3C%8A%BC%9F5%22%A4%BD%8F
parent bc3a9dd8
...@@ -959,10 +959,10 @@ class CreateControlFlowGraph(CythonTransform): ...@@ -959,10 +959,10 @@ class CreateControlFlowGraph(CythonTransform):
else: else:
# TODO: handle * pattern # TODO: handle * pattern
pass pass
if clause.target:
self.mark_assignment(clause.target)
entry_point = self.flow.newblock(parent=self.flow.block) entry_point = self.flow.newblock(parent=self.flow.block)
self.flow.nextblock() self.flow.nextblock()
if clause.target:
self.mark_assignment(clause.target)
self.visit(clause.body) self.visit(clause.body)
if self.flow.block: if self.flow.block:
self.flow.block.add_child(next_block) self.flow.block.add_child(next_block)
......
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