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"
|
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):
|
||||||
|
|
Loading…
Reference in New Issue