add asserts in replaceBranchTarget() and use casts instead of dyn_casts
add asserts in replaceBranchTarget() and use casts instead of dyn_casts

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