From 9ae5e3c569ecada50673743945f906004cd06936 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 22 Nov 2020 11:55:06 +0800 Subject: [PATCH] Revert "compiler: fix incorrect with behavior" This reverts commit 86a6fe460665c752c4e00a7e0864459615c467f0. --- artiq/compiler/transforms/artiq_ir_generator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/artiq/compiler/transforms/artiq_ir_generator.py b/artiq/compiler/transforms/artiq_ir_generator.py index ef301c03f..71541f387 100644 --- a/artiq/compiler/transforms/artiq_ir_generator.py +++ b/artiq/compiler/transforms/artiq_ir_generator.py @@ -855,7 +855,8 @@ class ARTIQIRGenerator(algorithm.Visitor): self.current_assign = None none = self.append(ir.Alloc([], builtins.TNone())) - cleanup.append(lambda fn=exit_fn: self._user_call(fn, [none, none, none], {})) + call = self._user_call(exit_fn, [none, none, none], {}) + cleanup.append(lambda: call) self._try_finally( body_gen=lambda: self.visit(node.body),