Skip to content

Conversation

@realrajaryan
Copy link

Fixes #85382.

Currently, assertionFailure() crashes at -Onone -assert-config Release because it used @inlinable @inline(__always) instead of @_transparent. At -Onone, this caused a call to the pre-compiled stdlib (built in Debug mode) instead of inlining.

To address this, we change it to @_transparent for mandatory inlining at all optimization levels, consistent with assert(), precondition(), and preconditionFailure().

@realrajaryan realrajaryan requested a review from a team as a code owner November 13, 2025 02:01
@slavapestov
Copy link
Contributor

@swift-ci Please smoke test

@slavapestov
Copy link
Contributor

@swift-ci Please test source compatibility

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.

assertionFailure() Not Removed at -Onone -assert-config Release

2 participants