forked from M-Labs/artiq
Revert "compiler: fix incorrect with behavior"
This reverts commit 86a6fe4606
.
This commit is contained in:
parent
68582b8dfa
commit
9ae5e3c569
|
@ -855,7 +855,8 @@ class ARTIQIRGenerator(algorithm.Visitor):
|
||||||
self.current_assign = None
|
self.current_assign = None
|
||||||
|
|
||||||
none = self.append(ir.Alloc([], builtins.TNone()))
|
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(
|
self._try_finally(
|
||||||
body_gen=lambda: self.visit(node.body),
|
body_gen=lambda: self.visit(node.body),
|
||||||
|
|
Loading…
Reference in New Issue