Fix two iterator invalidation bugs (use-after-free).
Fix two iterator invalidation bugs (use-after-free).

Advance the use iterator before erasing the current use of an instruction.

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