From 0d66bdfbf88f303f44619abed46d07811a5de63a Mon Sep 17 00:00:00 2001 From: whitequark Date: Sat, 18 Jul 2015 07:58:43 +0300 Subject: [PATCH] Fix For miscompilation. --- artiq/compiler/transforms/ir_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/compiler/transforms/ir_generator.py b/artiq/compiler/transforms/ir_generator.py index 17372cd17..ddb638c02 100644 --- a/artiq/compiler/transforms/ir_generator.py +++ b/artiq/compiler/transforms/ir_generator.py @@ -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)