From 8373a6cb0f24f24c48de27fb0b9f8d00934ba21d Mon Sep 17 00:00:00 2001 From: David Mak Date: Thu, 19 Oct 2023 11:54:56 +0800 Subject: [PATCH] artiq: Use gen_block when generating "with sequential" --- nac3artiq/src/codegen.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/nac3artiq/src/codegen.rs b/nac3artiq/src/codegen.rs index 112864358..939ea1c52 100644 --- a/nac3artiq/src/codegen.rs +++ b/nac3artiq/src/codegen.rs @@ -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(()); }