From c50d436f0b66a5e5c88cb1ea9403001277fbc469 Mon Sep 17 00:00:00 2001 From: whitequark Date: Wed, 13 Jul 2016 08:48:31 +0000 Subject: [PATCH] ir: `invoke` is a valid `delay` decomposition. Fixes #510. --- artiq/compiler/ir.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/compiler/ir.py b/artiq/compiler/ir.py index 57936c48c..e62ca3dfc 100644 --- a/artiq/compiler/ir.py +++ b/artiq/compiler/ir.py @@ -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)