# UE 5.7.2 various unreachable code detected when using bEnableAddressSanitizer 

**URL:** <https://forums.unrealengine.com/t/ue-5-7-2-various-unreachable-code-detected-when-using-benableaddresssanitizer/2707239>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, Epic-Pro-Support, question\
**Created:** [February 6, 2026, 2:06pm UTC](https://forums.unrealengine.com/t/ue-5-7-2-various-unreachable-code-detected-when-using-benableaddresssanitizer/2707239 "2026-02-06T14:06:58Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![ffabian.bl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ffabian.bl](https://forums.unrealengine.com/u/ffabian.bl)\
**Post date:** [February 12, 2026, 12:59pm UTC](https://forums.unrealengine.com/t/ue-5-7-2-various-unreachable-code-detected-when-using-benableaddresssanitizer/2707239/4 "2026-02-12T12:59:52Z")

</div>

Hi ​[mention removed]​,

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)
- CL 45924069 – [FoliageEdit] Fix unreachable code error
- CL 45836429 – Move binding for OnFinishedChangingProperties into reachable code
- CL 48449262 – RigVM Variable Mapping: remove unreachable code

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](https://forums.unrealengine.com/t/cant%5C-debug%5C-project%5C-with%5C-asan/2668998)

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.

Please let me know if this information helps.

Best,

Francisco

---

_[View the full topic](https://forums.unrealengine.com/t/ue-5-7-2-various-unreachable-code-detected-when-using-benableaddresssanitizer/2707239)._
