Use getEnumElementType instead of getTypeOfMember directly.
Use getEnumElementType instead of getTypeOfMember directly.

This is nicer, and it also does type-lowering and
abstraction difference for us automatically.

Swift SVN r14696

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