forked from M-Labs/artiq
1
0
Fork 0

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
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ class Visitor:
raise NotImplementedError("Unsupported node '{}' in statement" raise NotImplementedError("Unsupported node '{}' in statement"
.format(node_type)) .format(node_type))
visitor(node) visitor(node)
if node_type == "Return": if node_type in ("Return", "Break", "Continue"):
break break
def _visit_stmt_Assign(self, node): def _visit_stmt_Assign(self, node):