[release/9.0-staging] [mono] Workaround MSVC miscompiling sgen_clz by github-actions[bot] · Pull Request #114903 · dotnet/runtime

@akoeplinger

After the recent VS upgrade from 17.12.5 to 17.13.2 we started seeing access violations in the mono-aot-cross.exe when targetting wasm.

We tracked it down to sgen_clz being miscompiled, we can workaround the compiler bug by switching from ternary condition to if/else.

This was referenced

Apr 22, 2025

@akoeplinger akoeplinger deleted the backport/pr-114786-to-release/9.0-staging branch

April 23, 2025 10:36