Skip to content

Commit

Permalink
ir: invoke is a valid delay decomposition.
Browse files Browse the repository at this point in the history
Fixes #510.
whitequark committed Jul 13, 2016
1 parent 1c32d4f commit c50d436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion artiq/compiler/ir.py
Original file line number Diff line number Diff line change
@@ -1325,7 +1325,7 @@ class Delay(Terminator):
:param target: (:class:`BasicBlock`) branch target
"""
def __init__(self, interval, decomposition, target, name=""):
assert isinstance(decomposition, Call) or \
assert isinstance(decomposition, Call) or isinstance(decomposition, Invoke) or \
isinstance(decomposition, Builtin) and decomposition.op in ("delay", "delay_mu")
assert isinstance(target, BasicBlock)
super().__init__([decomposition, target], builtins.TNone(), name)

0 comments on commit c50d436

Please sign in to comment.