Fix a small bug in getAnyMetatypeDepth.
Fix a small bug in getAnyMetatypeDepth.

getAnyMetatypeDepth was looping over the chain of metatypes, but it was not actually counting the depth.

Swift SVN r25689

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