transforms.artiq_ir_generator: fix typo.

This commit is contained in:
whitequark 2015-12-31 22:39:10 +08:00
parent ff0ab736e9
commit 693a364d85
1 changed files with 1 additions and 1 deletions

View File

@ -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])