Commit 0526d1b8 authored by Stefan Behnel's avatar Stefan Behnel

fix compiler crash by using transform.visit() instead of trying to restart it while it's running

parent 60056ff4
......@@ -96,7 +96,7 @@ class IterationTransform(Visitor.EnvTransform):
body=if_node,
else_clause=Nodes.SingleAssignmentNode(pos, lhs=result_ref, rhs=ExprNodes.BoolNode(pos, value=0))))
for_loop.analyse_expressions(self.current_env())
for_loop = self(for_loop)
for_loop = self.visit(for_loop)
new_node = UtilNodes.TempResultFromStatNode(result_ref, for_loop)
if node.operator == 'not_in':
......
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