From 6d29e768a5a486ef4a063b8193b44762680f81ee Mon Sep 17 00:00:00 2001 From: whitequark Date: Mon, 9 May 2016 12:51:24 +0000 Subject: [PATCH] Commit missing parts of 4e5d75295. --- artiq/compiler/transforms/llvm_ir_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/compiler/transforms/llvm_ir_generator.py b/artiq/compiler/transforms/llvm_ir_generator.py index 8340f6c82..e12017fd2 100644 --- a/artiq/compiler/transforms/llvm_ir_generator.py +++ b/artiq/compiler/transforms/llvm_ir_generator.py @@ -1399,7 +1399,7 @@ class LLVMIRGenerator: # RPC and C functions have no runtime representation. return ll.Constant(llty, ll.Undefined) elif types.is_function(typ): - llfun = self.get_function(typ, self.function_map[value]) + llfun = self.get_function(typ.find(), self.function_map[value]) llclosure = ll.Constant(self.llty_of_type(typ), [ ll.Constant(llptr, ll.Undefined), llfun