py2llvm: stop after other types of termination instructions

This commit is contained in:
Sebastien Bourdeauducq 2014-09-23 16:21:48 +08:00
parent e8c92c3b6f
commit c989daf4d6

View File

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