2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

Revert "compiler: fix incorrect with behavior"

This reverts commit fe6115bcbb.
This commit is contained in:
Sebastien Bourdeauducq 2020-11-22 11:57:21 +08:00
parent 3e38833020
commit 8e46c3c1fd

View File

@ -878,7 +878,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),