Allow DeclRefExprs to refer to generic functions.  Teach semaApplyExpr to handle DeclRefExprs referring to generic functions.
Allow DeclRefExprs to refer to generic functions.  Teach semaApplyExpr to handle DeclRefExprs referring to generic functions.

This is an interim hack, but it unblocks my work on operators.



Swift SVN r2252

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