From ffd2bdc4eb745c9ae05b5340c2ccc56116b7de99 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 7 Jul 2014 19:11:07 +0200 Subject: [PATCH] compiler/inline: return number -> function RPC map --- artiq/compiler/inline.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/artiq/compiler/inline.py b/artiq/compiler/inline.py index 6f007738a..593e3b8a4 100644 --- a/artiq/compiler/inline.py +++ b/artiq/compiler/inline.py @@ -238,4 +238,5 @@ def inline(core, k_function, k_args, k_kwargs, rm=None): if init_kernel_attr: funcdef.body[0:0] = rm.kernel_attr_init - return funcdef.body, rm.rpc_map + r_rpc_map = dict((rpc_num, rpc_fun) for rpc_fun, rpc_num in rm.rpc_map.items()) + return funcdef.body, r_rpc_map