forked from M-Labs/artiq
1
0
Fork 0

fixes with statement with multiple items

Closes #1478
This commit is contained in:
pca006132 2020-10-06 15:19:45 +08:00 committed by Sebastien Bourdeauducq
parent 929b04da59
commit e23ed15464
1 changed files with 2 additions and 2 deletions

View File

@ -853,8 +853,8 @@ class ARTIQIRGenerator(algorithm.Visitor):
self.current_assign = None
none = self.append(ir.Alloc([], builtins.TNone()))
cleanup.append(lambda:
self._user_call(exit_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),