[stdlib] Add missing precondition check
[stdlib] Add missing precondition check

Fixes <rdar://problem/17392712> UnsafeArray.init() should _precondition(length >= 0)

Swift SVN r19373

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