2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-19 08:26:30 +08:00

Fix For miscompilation.

This commit is contained in:
whitequark 2015-07-18 07:58:43 +03:00
parent dde2e67c3f
commit 0d66bdfbf8

View File

@ -368,7 +368,7 @@ class IRGenerator(algorithm.Visitor):
elt = self._iterable_get(iterable, phi)
try:
self.current_assign = elt
self.visit(node.iter)
self.visit(node.target)
finally:
self.current_assign = None
self.visit(node.body)