2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

Commit missing parts of 4e5d75295.

This commit is contained in:
whitequark 2016-05-09 12:51:24 +00:00
parent 4e5d752951
commit 6d29e768a5

View File

@ -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