forked from M-Labs/artiq
wrpll/thls: stop at return statement
This commit is contained in:
parent
34222b3f38
commit
831b3514d3
@ -286,6 +286,8 @@ def compile(processor, function):
|
||||
arg_r = astcompiler.input(arg)
|
||||
for node in body:
|
||||
astcompiler.emit(node)
|
||||
if isinstance(node, ast.Return):
|
||||
break
|
||||
|
||||
scheduler = Scheduler(processor, len(astcompiler.data), astcompiler.program)
|
||||
scheduler.schedule()
|
||||
|
Loading…
Reference in New Issue
Block a user