Sema: Fix TypeBase::getSuperclass() for types nested in generic functions
Sema: Fix TypeBase::getSuperclass() for types nested in generic functions

This isn't something we care about yet, but for some reason a subsequent
patch caused some fixed compiler_crashers to regress and hit this.

Tests are in the next commit.

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