Perform substitution in ProtocolConformance::getInheritedConformance() properly
Perform substitution in ProtocolConformance::getInheritedConformance() properly

Fixes the regression in rdar://problem/20301648, which was triggered
by the separation of extension archetypes (r26483).

Swift SVN r26638

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