Skip to content

Fix build breaks stemming from compiler optimizations - #680

Merged
Duncan Horn (dunhor) merged 2 commits into
masterfrom
dunhor/noreturn-bld-fix
Nov 18, 2026
Merged

Duncan Horn (dunhor) merged 2 commits into
masterfrom
dunhor/noreturn-bld-fix

Conversation

@dunhor

Copy link
Copy Markdown
Member

The pch.h comment captures most of the information... TL;DR is that an MSVC update has become very aggressive about deducing if a function is 'noreturn' even with no attribute present on the function. This most immediately results in build breaks due to unreachable code warnings, but even if you suppress those, we still get the int 3 interrupts inserted that would otherwise terminate execution. This works around the problem by making it harder for the compiler to deduce that the leaf function WilRaiseFailFastException can't return via a function pointer.

@dunhor
Duncan Horn (dunhor) merged commit d084cd4 into master Nov 18, 2026
18 checks passed
@dunhor
Duncan Horn (dunhor) deleted the dunhor/noreturn-bld-fix branch November 18, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants