2
0
mirror of https://github.com/m-labs/artiq.git synced 2025-01-29 20:00:20 +08:00

transforms.artiq_ir_generator: fix typo.

This commit is contained in:
whitequark 2015-12-31 22:39:10 +08:00
parent ff0ab736e9
commit 693a364d85

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