From c989daf4d65173bd1f90b1ce438aff13ef074faa Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 23 Sep 2014 16:21:48 +0800 Subject: [PATCH] py2llvm: stop after other types of termination instructions --- artiq/py2llvm/ast_body.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/py2llvm/ast_body.py b/artiq/py2llvm/ast_body.py index df742bf78..4eea4f48e 100644 --- a/artiq/py2llvm/ast_body.py +++ b/artiq/py2llvm/ast_body.py @@ -164,7 +164,7 @@ class Visitor: raise NotImplementedError("Unsupported node '{}' in statement" .format(node_type)) visitor(node) - if node_type == "Return": + if node_type in ("Return", "Break", "Continue"): break def _visit_stmt_Assign(self, node):