From 03b4e4027c72aedd9d811a539c8c2e927f23f89f Mon Sep 17 00:00:00 2001 From: whitequark Date: Mon, 23 Nov 2015 18:53:42 +0800 Subject: [PATCH] transforms.interleaver: fix IR type/value mismatch. --- artiq/compiler/transforms/interleaver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/compiler/transforms/interleaver.py b/artiq/compiler/transforms/interleaver.py index 5f33bcf2d..282c84534 100644 --- a/artiq/compiler/transforms/interleaver.py +++ b/artiq/compiler/transforms/interleaver.py @@ -102,7 +102,7 @@ class Interleaver: assert isinstance(source_terminator, ir.Delay) if is_pure_delay(old_decomp): - new_decomp_expr = ir.Constant(target_time_delta, builtins.TInt64()) + new_decomp_expr = ir.Constant(int(target_time_delta), builtins.TInt64()) new_decomp = ir.Builtin("delay_mu", [new_decomp_expr], builtins.TNone()) new_decomp.loc = old_decomp.loc source_terminator.basic_block.insert(source_terminator, new_decomp)