artiq: Use gen_block when generating "with sequential"
This commit is contained in:
parent
f75ae78677
commit
8373a6cb0f
@ -215,12 +215,7 @@ impl<'b> CodeGenerator for ArtiqCodeGenerator<'b> {
|
||||
return Ok(());
|
||||
} else if id == &"sequential".into() {
|
||||
let start = self.start.take();
|
||||
for stmt in body.iter() {
|
||||
self.gen_stmt(ctx, stmt)?;
|
||||
if ctx.is_terminated() {
|
||||
break;
|
||||
}
|
||||
}
|
||||
gen_block(self, ctx, body.iter())?;
|
||||
self.start = start;
|
||||
return Ok(());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user