From 607499b656f19749b655c45137fe3a84ea32f202 Mon Sep 17 00:00:00 2001 From: marsninja Date: Thu, 5 Sep 2024 16:49:02 -0400 Subject: [PATCH] terminate is more immediate --- jaclang/compiler/passes/ir_pass.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jaclang/compiler/passes/ir_pass.py b/jaclang/compiler/passes/ir_pass.py index e1837d311..f5e772eb2 100644 --- a/jaclang/compiler/passes/ir_pass.py +++ b/jaclang/compiler/passes/ir_pass.py @@ -133,6 +133,8 @@ def traverse(self, node: ast.AstNode) -> ast.AstNode: else: self.prune_signal = False self.cur_node = node + if self.term_signal: + return node self.exit_node(node) return node