fix a use-after-free problem in redundant load elimination
fix a use-after-free problem in redundant load elimination

This shows up in an assert in RLE, but is very hard to reproduce.
The problem was that the reference to the Values map element is potentially invalidated when assigning to the Values map in this line:
   Values[Base] = FirstVal.stripLastLevelProjection();

hopefully fixes rdar://problem/29922800

danielmartin/swift,gottesmm/swift,tkremenek/swift,tjw/swift,amraboelela/swift,jtbandes/swift,glessard/swift,lorentey/swift,jmgc/swift,manavgabhawala/swift,sschiau/swift,arvedviehweger/swift,shajrawi/swift,hughbe/swift,return/swift,swiftix/swift,CodaFi/swift,shajrawi/swift,xedin/swift,lorentey/swift,uasys/swift,shajrawi/swift,harlanhaskins/swift,felix91gr/swift,Jnosh/swift,glessard/swift,hooman/swift,jtbandes/swift,ahoppen/swift,OscarSwanros/swift,JaSpa/swift,tardieu/swift,JaSpa/swift,huonw/swift,gribozavr/swift,gribozavr/swift,lorentey/swift,hooman/swift,Jnosh/swift,gottesmm/swift,tardieu/swift,atrick/swift,xwu/swift,jopamer/swift,zisko/swift,sschiau/swift,gmilos/swift,JGiola/swift,felix91gr/swift,manavgabhawala/swift,alblue/swift,milseman/swift,return/swift,CodaFi/swift,felix91gr/swift,sschiau/swift,karwa/swift,zisko/swift,Jnosh/swift,xwu/swift,harlanhaskins/swift,benlangmuir/swift,aschwaighofer/swift,aschwaighofer/swift,milseman/swift,CodaFi/swift,huonw/swift,stephentyrone/swift,stephentyrone/swift,manavgabhawala/swift,bitjammer/swift,lorentey/swift,ahoppen/swift,jopamer/swift,lorentey/swift,allevato/swift,gmilos/swift,devincoughlin/swift,nathawes/swift,austinzheng/swift,zisko/swift,OscarSwanros/swift,austinzheng/swift,JGiola/swift,shajrawi/swift,natecook1000/swift,arvedviehweger/swift,gregomni/swift,roambotics/swift,gmilos/swift,roambotics/swift,OscarSwanros/swift,zisko/swift,stephentyrone/swift,jtbandes/swift,rudkx/swift,austinzheng/swift,stephentyrone/swift,tardieu/swift,practicalswift/swift,manavgabhawala/swift,roambotics/swift,rudkx/swift,parkera/swift,brentdax/swift,alblue/swift,roambotics/swift,nathawes/swift,uasys/swift,stephentyrone/swift,huonw/swift,hughbe/swift,arvedviehweger/swift,felix91gr/swift,tjw/swift,Jnosh/swift,zisko/swift,lorentey/swift,djwbrown/swift,harlanhaskins/swift,tardieu/swift,gottesmm/swift,parkera/swift,devincoughlin/swift,djwbrown/swift,swiftix/swift,arvedviehweger/swift,tinysun212/swift-windows,huonw/swift,return/swift,JaSpa/swift,devincoughlin/swift,djwbrown/swift,calebd/swift,atrick/swift,djwbrown/swift,practicalswift/swift,shahmishal/swift,gregomni/swift,JGiola/swift,natecook1000/swift,karwa/swift,practicalswift/swift,apple/swift,shahmishal/swift,xedin/swift,atrick/swift,JGiola/swift,airspeedswift/swift,calebd/swift,benlangmuir/swift,xedin/swift,frootloops/swift,calebd/swift,rudkx/swift,natecook1000/swift,xwu/swift,xedin/swift,deyton/swift,xwu/swift,jckarter/swift,shahmishal/swift,brentdax/swift,danielmartin/swift,shahmishal/swift,arvedviehweger/swift,tkremenek/swift,harlanhaskins/swift,jopamer/swift,shajrawi/swift,alblue/swift,tjw/swift,uasys/swift,gmilos/swift,tkremenek/swift,parkera/swift,atrick/swift,OscarSwanros/swift,gribozavr/swift,tinysun212/swift-windows,xedin/swift,allevato/swift,djwbrown/swift,nathawes/swift,shahmishal/swift,roambotics/swift,tjw/swift,swiftix/swift,gregomni/swift,apple/swift,amraboelela/swift,shajrawi/swift,allevato/swift,JaSpa/swift,practicalswift/swift,tinysun212/swift-windows,hughbe/swift,aschwaighofer/swift,arvedviehweger/swift,hooman/swift,felix91gr/swift,frootloops/swift,sschiau/swift,apple/swift,jmgc/swift,ahoppen/swift,xedin/swift,airspeedswift/swift,karwa/swift,huonw/swift,uasys/swift,rudkx/swift,return/swift,brentdax/swift,codestergit/swift,alblue/swift,jopamer/swift,devincoughlin/swift,codestergit/swift,parkera/swift,glessard/swift,zisko/swift,danielmartin/swift,practicalswift/swift,Jnosh/swift,tkremenek/swift,gottesmm/swift,jmgc/swift,tardieu/swift,shajrawi/swift,practicalswift/swift,tardieu/swift,jckarter/swift,OscarSwanros/swift,danielmartin/swift,stephentyrone/swift,tardieu/swift,jmgc/swift,benlangmuir/swift,JaSpa/swift,codestergit/swift,allevato/swift,xedin/swift,devincoughlin/swift,gregomni/swift,allevato/swift,sschiau/swift,harlanhaskins/swift,deyton/swift,bitjammer/swift,shajrawi/swift,tjw/swift,natecook1000/swift,milseman/swift,gribozavr/swift,harlanhaskins/swift,parkera/swift,amraboelela/swift,gmilos/swift,manavgabhawala/swift,devincoughlin/swift,gottesmm/swift,amraboelela/swift,natecook1000/swift,jopamer/swift,felix91gr/swift,tinysun212/swift-windows,jtbandes/swift,brentdax/swift,jtbandes/swift,karwa/swift,arvedviehweger/swift,CodaFi/swift,gribozavr/swift,sschiau/swift,airspeedswift/swift,calebd/swift,JGiola/swift,airspeedswift/swift,tinysun212/swift-windows,JaSpa/swift,jckarter/swift,deyton/swift,hughbe/swift,manavgabhawala/swift,jckarter/swift,swiftix/swift,frootloops/swift,felix91gr/swift,gottesmm/swift,benlangmuir/swift,uasys/swift,shahmishal/swift,danielmartin/swift,gmilos/swift,tkremenek/swift,rudkx/swift,JaSpa/swift,lorentey/swift,jckarter/swift,swiftix/swift,frootloops/swift,jmgc/swift,shahmishal/swift,return/swift,milseman/swift,amraboelela/swift,deyton/swift,uasys/swift,gregomni/swift,karwa/swift,nathawes/swift,tinysun212/swift-windows,nathawes/swift,jopamer/swift,austinzheng/swift,OscarSwanros/swift,airspeedswift/swift,bitjammer/swift,aschwaighofer/swift,CodaFi/swift,djwbrown/swift,sschiau/swift,hooman/swift,nathawes/swift,allevato/swift,CodaFi/swift,JGiola/swift,tjw/swift,ahoppen/swift,jckarter/swift,ahoppen/swift,brentdax/swift,huonw/swift,jtbandes/swift,gmilos/swift,allevato/swift,harlanhaskins/swift,austinzheng/swift,bitjammer/swift,stephentyrone/swift,tkremenek/swift,airspeedswift/swift,xedin/swift,karwa/swift,devincoughlin/swift,alblue/swift,codestergit/swift,jtbandes/swift,atrick/swift,practicalswift/swift,frootloops/swift,alblue/swift,milseman/swift,huonw/swift,return/swift,uasys/swift,apple/swift,sschiau/swift,return/swift,airspeedswift/swift,gribozavr/swift,gregomni/swift,hughbe/swift,parkera/swift,danielmartin/swift,OscarSwanros/swift,jmgc/swift,amraboelela/swift,tkremenek/swift,xwu/swift,natecook1000/swift,natecook1000/swift,austinzheng/swift,glessard/swift,xwu/swift,benlangmuir/swift,apple/swift,Jnosh/swift,rudkx/swift,danielmartin/swift,gribozavr/swift,amraboelela/swift,codestergit/swift,austinzheng/swift,parkera/swift,apple/swift,glessard/swift,karwa/swift,brentdax/swift,frootloops/swift,swiftix/swift,CodaFi/swift,ahoppen/swift,hooman/swift,lorentey/swift,glessard/swift,brentdax/swift,tinysun212/swift-windows,bitjammer/swift,milseman/swift,swiftix/swift,bitjammer/swift,jckarter/swift,aschwaighofer/swift,deyton/swift,hughbe/swift,tjw/swift,karwa/swift,aschwaighofer/swift,parkera/swift,gribozavr/swift,jopamer/swift,frootloops/swift,aschwaighofer/swift,atrick/swift,hooman/swift,calebd/swift,djwbrown/swift,hooman/swift,shahmishal/swift,bitjammer/swift,deyton/swift,calebd/swift,zisko/swift,alblue/swift,roambotics/swift,Jnosh/swift,manavgabhawala/swift,jmgc/swift,xwu/swift,deyton/swift,gottesmm/swift,nathawes/swift,milseman/swift,practicalswift/swift,codestergit/swift,calebd/swift,hughbe/swift,benlangmuir/swift,codestergit/swift,devincoughlin/swift