forked from M-Labs/artiq
transforms.artiq_ir_generator: fix typo.
This commit is contained in:
parent
ff0ab736e9
commit
693a364d85
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue