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
parent 4e5d752951
commit 6d29e768a5
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. # RPC and C functions have no runtime representation.
return ll.Constant(llty, ll.Undefined) return ll.Constant(llty, ll.Undefined)
elif types.is_function(typ): 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), [ llclosure = ll.Constant(self.llty_of_type(typ), [
ll.Constant(llptr, ll.Undefined), ll.Constant(llptr, ll.Undefined),
llfun llfun