Avoid calling members with a null this when printing TypeReprs
Avoid calling members with a null this when printing TypeReprs

Avoid some undefined behaviour and a warning with newer clang by
wrapping the null check in TypeRepr::print in a call to a freestanding
function.

Swift SVN r23168

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