Skip to content

Commit

Permalink
transforms.artiq_ir_generator: fix typo.
Browse files Browse the repository at this point in the history
whitequark committed Dec 31, 2015
1 parent ff0ab73 commit 693a364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion artiq/compiler/transforms/artiq_ir_generator.py
Original file line number Diff line number Diff line change
@@ -622,7 +622,7 @@ def visit_Try(self, node):
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])

0 comments on commit 693a364

Please sign in to comment.