fix <rdar://problem/16954239> Crash in type lowering when using bridged types but not foundation
fix <rdar://problem/16954239> Crash in type lowering when using bridged types but not foundation

by propagating the null bridging type up correctly.  The experience is now:

$ swift t.swift -emit-sil
<unknown>:0: error: could not find Objective-C bridge type for type 'ImplicitlyUnwrappedOptional<String>'; did you forget to import Foundation?
LLVM ERROR: unable to set up the ObjC bridge!

which is horrible, but consistent, and a lot less head-scratching than what we did before.

No testcase since this isn't a recoverable error and doesn't matter much.



Swift SVN r18356

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