forked from M-Labs/artiq
1
0
Fork 0

Commit missing parts of 4e5d75295.

This commit is contained in:
whitequark 2016-05-09 12:51:24 +00:00 committed by Sebastien Bourdeauducq
parent 9196cdc554
commit 7de77cfc8f
1 changed files with 1 additions and 1 deletions

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