From 15bb0fa9a19720b40e67cc221e384f5910670185 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 22 Nov 2020 11:55:09 +0800 Subject: [PATCH] Revert "fixes with statement with multiple items" This reverts commit e23ed1546401f87e547c193643a9a0457dea9e57. --- artiq/compiler/transforms/artiq_ir_generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/compiler/transforms/artiq_ir_generator.py b/artiq/compiler/transforms/artiq_ir_generator.py index 71541f387..32f3e72aa 100644 --- a/artiq/compiler/transforms/artiq_ir_generator.py +++ b/artiq/compiler/transforms/artiq_ir_generator.py @@ -855,8 +855,8 @@ class ARTIQIRGenerator(algorithm.Visitor): self.current_assign = None none = self.append(ir.Alloc([], builtins.TNone())) - call = self._user_call(exit_fn, [none, none, none], {}) - cleanup.append(lambda: call) + cleanup.append(lambda: + self._user_call(exit_fn, [none, none, none], {})) self._try_finally( body_gen=lambda: self.visit(node.body),