SIL: Fix type lowering for generic local functions with captures
SIL: Fix type lowering for generic local functions with captures

We want the generic signature to appear on the outermost
function, after the captures, otherwise we run into trouble
because we have a generic function type in value position,
which is not allowed.

Brings us a step closer to allowing local generic functions
to capture values, but NFC for now.

roambotics/swift,lorentey/swift,deyton/swift,swiftix/swift,karwa/swift,austinzheng/swift,djwbrown/swift,benlangmuir/swift,ben-ng/swift,tinysun212/swift-windows,shahmishal/swift,apple/swift,djwbrown/swift,zisko/swift,stephentyrone/swift,practicalswift/swift,Jnosh/swift,CodaFi/swift,natecook1000/swift,jckarter/swift,dreamsxin/swift,uasys/swift,bitjammer/swift,roambotics/swift,apple/swift,kstaring/swift,calebd/swift,shahmishal/swift,karwa/swift,amraboelela/swift,gribozavr/swift,djwbrown/swift,return/swift,airspeedswift/swift,hughbe/swift,amraboelela/swift,airspeedswift/swift,practicalswift/swift,russbishop/swift,shajrawi/swift,ahoppen/swift,Jnosh/swift,practicalswift/swift,tjw/swift,lorentey/swift,CodaFi/swift,apple/swift,jtbandes/swift,OscarSwanros/swift,glessard/swift,allevato/swift,aschwaighofer/swift,hooman/swift,felix91gr/swift,hughbe/swift,brentdax/swift,karwa/swift,devincoughlin/swift,tardieu/swift,gmilos/swift,amraboelela/swift,kperryua/swift,hooman/swift,jckarter/swift,tkremenek/swift,tinysun212/swift-windows,codestergit/swift,gribozavr/swift,kstaring/swift,milseman/swift,JGiola/swift,zisko/swift,parkera/swift,ahoppen/swift,frootloops/swift,kstaring/swift,aschwaighofer/swift,gottesmm/swift,ahoppen/swift,nathawes/swift,deyton/swift,gmilos/swift,milseman/swift,apple/swift,calebd/swift,OscarSwanros/swift,allevato/swift,sschiau/swift,xedin/swift,modocache/swift,gmilos/swift,stephentyrone/swift,therealbnut/swift,austinzheng/swift,jopamer/swift,bitjammer/swift,shahmishal/swift,calebd/swift,tkremenek/swift,felix91gr/swift,jckarter/swift,felix91gr/swift,hooman/swift,IngmarStein/swift,jtbandes/swift,sschiau/swift,devincoughlin/swift,deyton/swift,aschwaighofer/swift,shajrawi/swift,nathawes/swift,Jnosh/swift,xwu/swift,shajrawi/swift,jtbandes/swift,tkremenek/swift,milseman/swift,gmilos/swift,devincoughlin/swift,tkremenek/swift,huonw/swift,jckarter/swift,sschiau/swift,parkera/swift,karwa/swift,amraboelela/swift,roambotics/swift,djwbrown/swift,tinysun212/swift-windows,stephentyrone/swift,djwbrown/swift,bitjammer/swift,return/swift,tinysun212/swift-windows,danielmartin/swift,arvedviehweger/swift,milseman/swift,alblue/swift,russbishop/swift,milseman/swift,tinysun212/swift-windows,JaSpa/swift,karwa/swift,kperryua/swift,manavgabhawala/swift,therealbnut/swift,uasys/swift,tardieu/swift,amraboelela/swift,apple/swift,codestergit/swift,return/swift,OscarSwanros/swift,devincoughlin/swift,frootloops/swift,harlanhaskins/swift,hooman/swift,kperryua/swift,airspeedswift/swift,lorentey/swift,return/swift,modocache/swift,arvedviehweger/swift,IngmarStein/swift,tjw/swift,parkera/swift,xwu/swift,JGiola/swift,tkremenek/swift,gribozavr/swift,arvedviehweger/swift,sschiau/swift,gregomni/swift,brentdax/swift,jmgc/swift,austinzheng/swift,swiftix/swift,jopamer/swift,austinzheng/swift,jopamer/swift,JGiola/swift,tardieu/swift,benlangmuir/swift,shajrawi/swift,allevato/swift,OscarSwanros/swift,therealbnut/swift,parkera/swift,arvedviehweger/swift,codestergit/swift,tinysun212/swift-windows,CodaFi/swift,shajrawi/swift,sschiau/swift,austinzheng/swift,swiftix/swift,gribozavr/swift,bitjammer/swift,huonw/swift,jtbandes/swift,uasys/swift,alblue/swift,hughbe/swift,ahoppen/swift,gottesmm/swift,jmgc/swift,codestergit/swift,rudkx/swift,danielmartin/swift,russbishop/swift,xwu/swift,shahmishal/swift,jtbandes/swift,alblue/swift,jopamer/swift,jmgc/swift,alblue/swift,CodaFi/swift,sschiau/swift,zisko/swift,swiftix/swift,shajrawi/swift,frootloops/swift,allevato/swift,benlangmuir/swift,CodaFi/swift,tkremenek/swift,CodaFi/swift,kstaring/swift,stephentyrone/swift,danielmartin/swift,amraboelela/swift,hooman/swift,manavgabhawala/swift,kstaring/swift,zisko/swift,parkera/swift,nathawes/swift,zisko/swift,sschiau/swift,arvedviehweger/swift,practicalswift/swift,atrick/swift,glessard/swift,rudkx/swift,hughbe/swift,felix91gr/swift,jckarter/swift,gottesmm/swift,OscarSwanros/swift,devincoughlin/swift,airspeedswift/swift,IngmarStein/swift,felix91gr/swift,rudkx/swift,IngmarStein/swift,allevato/swift,dreamsxin/swift,JaSpa/swift,danielmartin/swift,jmgc/swift,devincoughlin/swift,JaSpa/swift,austinzheng/swift,rudkx/swift,frootloops/swift,return/swift,uasys/swift,shahmishal/swift,shahmishal/swift,rudkx/swift,gribozavr/swift,frootloops/swift,devincoughlin/swift,JaSpa/swift,shajrawi/swift,Jnosh/swift,xwu/swift,alblue/swift,amraboelela/swift,natecook1000/swift,therealbnut/swift,xedin/swift,manavgabhawala/swift,xedin/swift,aschwaighofer/swift,harlanhaskins/swift,danielmartin/swift,brentdax/swift,xwu/swift,gregomni/swift,gottesmm/swift,ben-ng/swift,russbishop/swift,tjw/swift,huonw/swift,uasys/swift,calebd/swift,russbishop/swift,codestergit/swift,deyton/swift,jckarter/swift,ben-ng/swift,JaSpa/swift,huonw/swift,shahmishal/swift,manavgabhawala/swift,huonw/swift,codestergit/swift,Jnosh/swift,lorentey/swift,atrick/swift,gottesmm/swift,alblue/swift,felix91gr/swift,glessard/swift,natecook1000/swift,therealbnut/swift,calebd/swift,CodaFi/swift,jopamer/swift,shajrawi/swift,practicalswift/swift,jmgc/swift,jckarter/swift,IngmarStein/swift,ahoppen/swift,karwa/swift,allevato/swift,uasys/swift,manavgabhawala/swift,rudkx/swift,gregomni/swift,modocache/swift,arvedviehweger/swift,IngmarStein/swift,gottesmm/swift,deyton/swift,swiftix/swift,deyton/swift,hooman/swift,return/swift,bitjammer/swift,benlangmuir/swift,huonw/swift,brentdax/swift,gmilos/swift,kstaring/swift,harlanhaskins/swift,harlanhaskins/swift,airspeedswift/swift,benlangmuir/swift,aschwaighofer/swift,uasys/swift,hughbe/swift,lorentey/swift,airspeedswift/swift,parkera/swift,karwa/swift,calebd/swift,allevato/swift,jtbandes/swift,nathawes/swift,Jnosh/swift,practicalswift/swift,austinzheng/swift,aschwaighofer/swift,djwbrown/swift,harlanhaskins/swift,roambotics/swift,Jnosh/swift,stephentyrone/swift,jopamer/swift,manavgabhawala/swift,russbishop/swift,zisko/swift,gribozavr/swift,frootloops/swift,practicalswift/swift,gregomni/swift,OscarSwanros/swift,karwa/swift,JGiola/swift,kperryua/swift,tardieu/swift,xedin/swift,ben-ng/swift,xedin/swift,modocache/swift,modocache/swift,harlanhaskins/swift,kperryua/swift,gribozavr/swift,jmgc/swift,xwu/swift,gmilos/swift,calebd/swift,modocache/swift,stephentyrone/swift,OscarSwanros/swift,tardieu/swift,tjw/swift,jmgc/swift,parkera/swift,xedin/swift,benlangmuir/swift,ben-ng/swift,natecook1000/swift,tardieu/swift,alblue/swift,roambotics/swift,nathawes/swift,devincoughlin/swift,natecook1000/swift,tjw/swift,glessard/swift,ben-ng/swift,zisko/swift,return/swift,nathawes/swift,lorentey/swift,harlanhaskins/swift,jtbandes/swift,brentdax/swift,glessard/swift,swiftix/swift,gottesmm/swift,djwbrown/swift,arvedviehweger/swift,brentdax/swift,manavgabhawala/swift,therealbnut/swift,JGiola/swift,hooman/swift,danielmartin/swift,gregomni/swift,apple/swift,gmilos/swift,russbishop/swift,hughbe/swift,milseman/swift,kperryua/swift,bitjammer/swift,tjw/swift,lorentey/swift,deyton/swift,swiftix/swift,ahoppen/swift,stephentyrone/swift,shahmishal/swift,tkremenek/swift,atrick/swift,tinysun212/swift-windows,hughbe/swift,natecook1000/swift,xedin/swift,felix91gr/swift,ben-ng/swift,kstaring/swift,sschiau/swift,practicalswift/swift,gregomni/swift,huonw/swift,atrick/swift,JaSpa/swift,jopamer/swift,natecook1000/swift,codestergit/swift,therealbnut/swift,atrick/swift,glessard/swift,roambotics/swift,kperryua/swift,JaSpa/swift,aschwaighofer/swift,JGiola/swift,airspeedswift/swift,IngmarStein/swift,lorentey/swift,parkera/swift,frootloops/swift,modocache/swift,brentdax/swift,xedin/swift,danielmartin/swift,nathawes/swift,atrick/swift,milseman/swift,tardieu/swift,xwu/swift,tjw/swift,bitjammer/swift,gribozavr/swift