forked from M-Labs/artiq
py2llvm: stop after other types of termination instructions
This commit is contained in:
parent
e8c92c3b6f
commit
c989daf4d6
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue