Setting bEnabledAddressSanitizer to true when building Development Editor Win64 uncovers numerous issues with unreachable code in systems as diverse as:
NiagaraEditor
RigVM
TextureGraph
FoliageEdit
SequencerCore
I recommend someone enables the setting and reviews the output in order to determine if the behaviour of these systems is correct or there are unintended sideeffects.
I looked into this further and ASan for Windows Editor builds isn’t currently a supported workflow. That said, the unreachable code build failures you reported have already been addressed upstream in UE5-Main via several small changes, so you may be able to unblock compilation by integrating those fixes.
I was able to cherry-pick the following CLs into UE5/Release-5.7 and confirm they eliminate the C4702 build stops:
CL 45956790 – Fix unreachable code warnings revealed by Editor ASan builds (SequencerCore / ViewModel.h)
With these integrated, the Editor target will compile successfully with ASan enabled on 5.7. However, launching the Windows Editor built with ASan still crashes (in my case, during startup in the MovieScene/PreAnimatedState path), which prevents the Editor from loading.
Epic’s recommended usage on Windows is to enable ASan only for the Win64 Game/Client target (not the Editor), via *.Target.cs. For reference, Patrick Laflamme describes that workflow here: Can't debug project with ASan
I’d suggest enabling ASan only for your Game/Client target but if you want to pursue Editor ASan builds for experimentation, the CLs above should help unblock compilation.