IRGen: Consider bound generic archetypes from substitutions rather than params.
IRGen: Consider bound generic archetypes from substitutions rather than params.

When looking for type metadata for bound generic types, consider all of the BoundGenericType's substitutions instead of just its type parameters. This lets us correctly find the associated type metadata from class instances. We still fail to pass associated type metadata alongside value types.

Swift SVN r5054

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