Minor refactoring of capture promotion.
Minor refactoring of capture promotion.

Swift SVN r23776

roambotics/swift,modocache/swift,Jnosh/swift,ken0nek/swift,JaSpa/swift,LeoShimonaka/swift,xedin/swift,tkremenek/swift,jtbandes/swift,calebd/swift,austinzheng/swift,gmilos/swift,bitjammer/swift,jmgc/swift,jtbandes/swift,khizkhiz/swift,glessard/swift,devincoughlin/swift,gregomni/swift,xedin/swift,OscarSwanros/swift,SwiftAndroid/swift,tjw/swift,tjw/swift,ahoppen/swift,milseman/swift,gregomni/swift,emilstahl/swift,tkremenek/swift,zisko/swift,Ivacker/swift,Ivacker/swift,Ivacker/swift,codestergit/swift,jckarter/swift,huonw/swift,sschiau/swift,MukeshKumarS/Swift,OscarSwanros/swift,lorentey/swift,mightydeveloper/swift,IngmarStein/swift,danielmartin/swift,xwu/swift,glessard/swift,therealbnut/swift,hooman/swift,LeoShimonaka/swift,hughbe/swift,johnno1962d/swift,dduan/swift,mightydeveloper/swift,djwbrown/swift,slavapestov/swift,SwiftAndroid/swift,huonw/swift,Jnosh/swift,harlanhaskins/swift,uasys/swift,calebd/swift,aschwaighofer/swift,calebd/swift,gribozavr/swift,jmgc/swift,apple/swift,kentya6/swift,IngmarStein/swift,djwbrown/swift,swiftix/swift.old,arvedviehweger/swift,manavgabhawala/swift,bitjammer/swift,johnno1962d/swift,devincoughlin/swift,frootloops/swift,apple/swift,MukeshKumarS/Swift,brentdax/swift,Ivacker/swift,harlanhaskins/swift,sdulal/swift,glessard/swift,SwiftAndroid/swift,jckarter/swift,harlanhaskins/swift,bitjammer/swift,emilstahl/swift,natecook1000/swift,shahmishal/swift,aschwaighofer/swift,uasys/swift,tjw/swift,codestergit/swift,gribozavr/swift,tkremenek/swift,allevato/swift,shajrawi/swift,allevato/swift,stephentyrone/swift,arvedviehweger/swift,slavapestov/swift,zisko/swift,shajrawi/swift,LeoShimonaka/swift,hooman/swift,SwiftAndroid/swift,gmilos/swift,johnno1962d/swift,kstaring/swift,tkremenek/swift,KrishMunot/swift,Jnosh/swift,MukeshKumarS/Swift,brentdax/swift,natecook1000/swift,deyton/swift,shahmishal/swift,deyton/swift,slavapestov/swift,sschiau/swift,codestergit/swift,therealbnut/swift,KrishMunot/swift,KrishMunot/swift,tinysun212/swift-windows,huonw/swift,shajrawi/swift,apple/swift,cbrentharris/swift,gottesmm/swift,sschiau/swift,CodaFi/swift,manavgabhawala/swift,JGiola/swift,mightydeveloper/swift,amraboelela/swift,jopamer/swift,huonw/swift,austinzheng/swift,djwbrown/swift,slavapestov/swift,swiftix/swift.old,sschiau/swift,gregomni/swift,brentdax/swift,stephentyrone/swift,adrfer/swift,jtbandes/swift,sdulal/swift,mightydeveloper/swift,kentya6/swift,benlangmuir/swift,sdulal/swift,therealbnut/swift,shajrawi/swift,CodaFi/swift,kentya6/swift,IngmarStein/swift,shahmishal/swift,tjw/swift,benlangmuir/swift,MukeshKumarS/Swift,kstaring/swift,xedin/swift,rudkx/swift,xedin/swift,sdulal/swift,parkera/swift,devincoughlin/swift,kperryua/swift,bitjammer/swift,calebd/swift,kusl/swift,austinzheng/swift,parkera/swift,LeoShimonaka/swift,allevato/swift,atrick/swift,return/swift,adrfer/swift,tinysun212/swift-windows,karwa/swift,zisko/swift,roambotics/swift,gmilos/swift,KrishMunot/swift,deyton/swift,apple/swift,CodaFi/swift,russbishop/swift,harlanhaskins/swift,MukeshKumarS/Swift,dduan/swift,alblue/swift,frootloops/swift,benlangmuir/swift,Ivacker/swift,stephentyrone/swift,frootloops/swift,gribozavr/swift,nathawes/swift,kentya6/swift,tinysun212/swift-windows,JaSpa/swift,swiftix/swift.old,lorentey/swift,bitjammer/swift,tinysun212/swift-windows,lorentey/swift,swiftix/swift.old,djwbrown/swift,deyton/swift,kperryua/swift,slavapestov/swift,ben-ng/swift,slavapestov/swift,tjw/swift,devincoughlin/swift,xwu/swift,jtbandes/swift,modocache/swift,allevato/swift,rudkx/swift,karwa/swift,swiftix/swift,karwa/swift,jmgc/swift,emilstahl/swift,danielmartin/swift,swiftix/swift,tardieu/swift,KrishMunot/swift,alblue/swift,amraboelela/swift,zisko/swift,mightydeveloper/swift,roambotics/swift,milseman/swift,allevato/swift,gmilos/swift,gribozavr/swift,natecook1000/swift,austinzheng/swift,uasys/swift,xwu/swift,cbrentharris/swift,ahoppen/swift,IngmarStein/swift,russbishop/swift,ahoppen/swift,therealbnut/swift,kentya6/swift,tardieu/swift,parkera/swift,alblue/swift,mightydeveloper/swift,cbrentharris/swift,lorentey/swift,Jnosh/swift,LeoShimonaka/swift,glessard/swift,danielmartin/swift,brentdax/swift,JaSpa/swift,jmgc/swift,gottesmm/swift,Ivacker/swift,hughbe/swift,dduan/swift,arvedviehweger/swift,tkremenek/swift,kstaring/swift,uasys/swift,amraboelela/swift,bitjammer/swift,gottesmm/swift,practicalswift/swift,aschwaighofer/swift,jopamer/swift,adrfer/swift,tinysun212/swift-windows,Ivacker/swift,frootloops/swift,emilstahl/swift,tardieu/swift,karwa/swift,mightydeveloper/swift,OscarSwanros/swift,airspeedswift/swift,karwa/swift,milseman/swift,shajrawi/swift,devincoughlin/swift,LeoShimonaka/swift,bitjammer/swift,tinysun212/swift-windows,CodaFi/swift,amraboelela/swift,calebd/swift,uasys/swift,shajrawi/swift,lorentey/swift,djwbrown/swift,jopamer/swift,hughbe/swift,felix91gr/swift,jtbandes/swift,felix91gr/swift,hooman/swift,kusl/swift,huonw/swift,kusl/swift,ken0nek/swift,milseman/swift,glessard/swift,airspeedswift/swift,OscarSwanros/swift,kperryua/swift,Ivacker/swift,alblue/swift,xedin/swift,parkera/swift,ken0nek/swift,milseman/swift,tjw/swift,gottesmm/swift,deyton/swift,gmilos/swift,adrfer/swift,atrick/swift,shajrawi/swift,glessard/swift,SwiftAndroid/swift,amraboelela/swift,rudkx/swift,gribozavr/swift,ben-ng/swift,russbishop/swift,huonw/swift,tjw/swift,russbishop/swift,aschwaighofer/swift,JGiola/swift,codestergit/swift,modocache/swift,apple/swift,arvedviehweger/swift,huonw/swift,khizkhiz/swift,jopamer/swift,therealbnut/swift,xedin/swift,austinzheng/swift,manavgabhawala/swift,practicalswift/swift,airspeedswift/swift,cbrentharris/swift,SwiftAndroid/swift,stephentyrone/swift,ahoppen/swift,MukeshKumarS/Swift,practicalswift/swift,practicalswift/swift,harlanhaskins/swift,jtbandes/swift,codestergit/swift,russbishop/swift,arvedviehweger/swift,johnno1962d/swift,frootloops/swift,return/swift,natecook1000/swift,kstaring/swift,aschwaighofer/swift,alblue/swift,CodaFi/swift,ken0nek/swift,kusl/swift,practicalswift/swift,airspeedswift/swift,hughbe/swift,atrick/swift,jckarter/swift,cbrentharris/swift,kusl/swift,kentya6/swift,hughbe/swift,modocache/swift,parkera/swift,roambotics/swift,johnno1962d/swift,jmgc/swift,IngmarStein/swift,kperryua/swift,kperryua/swift,lorentey/swift,dreamsxin/swift,natecook1000/swift,kperryua/swift,jckarter/swift,milseman/swift,lorentey/swift,felix91gr/swift,jtbandes/swift,karwa/swift,xwu/swift,Jnosh/swift,nathawes/swift,therealbnut/swift,JGiola/swift,emilstahl/swift,kusl/swift,CodaFi/swift,hooman/swift,ken0nek/swift,hughbe/swift,jckarter/swift,djwbrown/swift,shahmishal/swift,kstaring/swift,mightydeveloper/swift,brentdax/swift,airspeedswift/swift,gregomni/swift,swiftix/swift,roambotics/swift,stephentyrone/swift,JGiola/swift,sschiau/swift,ben-ng/swift,sdulal/swift,shahmishal/swift,khizkhiz/swift,kperryua/swift,benlangmuir/swift,brentdax/swift,kusl/swift,Jnosh/swift,cbrentharris/swift,adrfer/swift,KrishMunot/swift,swiftix/swift.old,JaSpa/swift,return/swift,lorentey/swift,xwu/swift,johnno1962d/swift,sdulal/swift,khizkhiz/swift,return/swift,zisko/swift,practicalswift/swift,OscarSwanros/swift,stephentyrone/swift,danielmartin/swift,shahmishal/swift,LeoShimonaka/swift,modocache/swift,zisko/swift,slavapestov/swift,allevato/swift,ahoppen/swift,emilstahl/swift,tardieu/swift,swiftix/swift,KrishMunot/swift,ben-ng/swift,shajrawi/swift,return/swift,calebd/swift,airspeedswift/swift,jckarter/swift,brentdax/swift,devincoughlin/swift,manavgabhawala/swift,djwbrown/swift,dreamsxin/swift,ken0nek/swift,kstaring/swift,sdulal/swift,karwa/swift,tardieu/swift,gmilos/swift,karwa/swift,parkera/swift,ben-ng/swift,kentya6/swift,gottesmm/swift,gregomni/swift,danielmartin/swift,shahmishal/swift,nathawes/swift,OscarSwanros/swift,xedin/swift,swiftix/swift,ben-ng/swift,MukeshKumarS/Swift,felix91gr/swift,alblue/swift,jopamer/swift,natecook1000/swift,cbrentharris/swift,kusl/swift,khizkhiz/swift,CodaFi/swift,sschiau/swift,dduan/swift,swiftix/swift,Jnosh/swift,nathawes/swift,hughbe/swift,codestergit/swift,amraboelela/swift,khizkhiz/swift,tkremenek/swift,IngmarStein/swift,jopamer/swift,return/swift,hooman/swift,JaSpa/swift,dduan/swift,atrick/swift,hooman/swift,IngmarStein/swift,parkera/swift,gottesmm/swift,russbishop/swift,tinysun212/swift-windows,ben-ng/swift,uasys/swift,harlanhaskins/swift,return/swift,felix91gr/swift,khizkhiz/swift,benlangmuir/swift,parkera/swift,roambotics/swift,benlangmuir/swift,russbishop/swift,austinzheng/swift,gmilos/swift,kstaring/swift,kentya6/swift,deyton/swift,jmgc/swift,modocache/swift,nathawes/swift,gregomni/swift,hooman/swift,shahmishal/swift,apple/swift,milseman/swift,JGiola/swift,atrick/swift,arvedviehweger/swift,JGiola/swift,sschiau/swift,xedin/swift,ahoppen/swift,felix91gr/swift,rudkx/swift,aschwaighofer/swift,nathawes/swift,xwu/swift,uasys/swift,dduan/swift,therealbnut/swift,atrick/swift,JaSpa/swift,gribozavr/swift,devincoughlin/swift,airspeedswift/swift,aschwaighofer/swift,manavgabhawala/swift,rudkx/swift,swiftix/swift.old,ken0nek/swift,practicalswift/swift,swiftix/swift.old,tardieu/swift,emilstahl/swift,jckarter/swift,manavgabhawala/swift,sdulal/swift,tardieu/swift,harlanhaskins/swift,frootloops/swift,xwu/swift,jmgc/swift,calebd/swift,cbrentharris/swift,jopamer/swift,JaSpa/swift,alblue/swift,modocache/swift,LeoShimonaka/swift,austinzheng/swift,adrfer/swift,gottesmm/swift,felix91gr/swift,allevato/swift,SwiftAndroid/swift,emilstahl/swift,tkremenek/swift,gribozavr/swift,arvedviehweger/swift,zisko/swift,natecook1000/swift,gribozavr/swift,adrfer/swift,manavgabhawala/swift,danielmartin/swift,practicalswift/swift,swiftix/swift,nathawes/swift,danielmartin/swift,swiftix/swift.old,OscarSwanros/swift,rudkx/swift,devincoughlin/swift,dduan/swift,johnno1962d/swift,stephentyrone/swift,frootloops/swift,sschiau/swift,amraboelela/swift,codestergit/swift,deyton/swift