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