From 693a364d85f2890d84c29936c0cfc7f923c2d10e Mon Sep 17 00:00:00 2001 From: whitequark Date: Thu, 31 Dec 2015 22:39:10 +0800 Subject: [PATCH] transforms.artiq_ir_generator: fix typo. --- artiq/compiler/transforms/artiq_ir_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/compiler/transforms/artiq_ir_generator.py b/artiq/compiler/transforms/artiq_ir_generator.py index 4212400df..9c6ba0259 100644 --- a/artiq/compiler/transforms/artiq_ir_generator.py +++ b/artiq/compiler/transforms/artiq_ir_generator.py @@ -622,7 +622,7 @@ class ARTIQIRGenerator(algorithm.Visitor): finally: self.unwind_target = old_unwind - if not body.is_terminated(): + if not self.current_block.is_terminated(): self.visit(node.orelse) elif any(node.orelse): self.warn_unreachable(node.orelse[0])