[sil-devirtualizer] Improve checks in upcast upcastArgument.
[sil-devirtualizer] Improve checks in upcast upcastArgument.

Swift SVN r23906

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