Skip to content

Commit f2f1801

Browse files
authored
fix: dodge Swift 6.3 SIL inliner crash on Onramp deinit (#334)
TestFlight archive (Release -O) was crashing inside the SIL optimizer's EarlyPerfInliner pass — a Swift 6.3 compiler bug triggered when checking layout-constraint compatibility through the generic parameters of the @mainactor OnrampVerificationViewModel's isolated deinit. Marking the deinit @_optimize(none) skips the optimizer for just that function; runtime behavior is unchanged.
1 parent e706aba commit f2f1801

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Flipcash/Core/Screens/Onramp/OnrampVerificationViewModel.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ final class OnrampVerificationViewModel<P: PhoneVerifying, E: EmailVerifying>: V
8787
}
8888
}
8989

90+
// `@_optimize(none)` skips the SIL optimizer for this deinit. Without it,
91+
// Swift 6.3's `EarlyPerfInliner` crashes when checking layout-constraint
92+
// compatibility through the generic parameters of this class on `-O`
93+
// archive builds.
94+
@_optimize(none)
9095
isolated deinit {
9196
let c = continuation
9297
continuation = nil

0 commit comments

Comments
 (0)