Avoid creating llvm function before the closure signature is known